propelauth 0.4.1 published on Friday, Mar 7, 2025 by propelauth
propelauth.getSocialLoginRedirect
Explore with Pulumi AI
propelauth 0.4.1 published on Friday, Mar 7, 2025 by propelauth
Retrieves the redirect url needed for configuring an OIDC provider for a Social Login in PropelAuth.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as propelauth from "@pulumi/propelauth";
const googleTestRedirect = propelauth.getSocialLoginRedirect({
environment: "Test",
});
export const googleTestRedirectResult = propelauth_social_login_redirect.google_test_redirect.redirect_url;
const googleProdRedirect = propelauth.getSocialLoginRedirect({
environment: "Prod",
});
export const googleProdRedirectResult = propelauth_social_login_redirect.google_prod_redirect.redirect_url;
import pulumi
import pulumi_propelauth as propelauth
google_test_redirect = propelauth.get_social_login_redirect(environment="Test")
pulumi.export("googleTestRedirectResult", propelauth_social_login_redirect["google_test_redirect"]["redirect_url"])
google_prod_redirect = propelauth.get_social_login_redirect(environment="Prod")
pulumi.export("googleProdRedirectResult", propelauth_social_login_redirect["google_prod_redirect"]["redirect_url"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/propelauth/propelauth"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := propelauth.GetSocialLoginRedirect(ctx, &propelauth.GetSocialLoginRedirectArgs{
Environment: "Test",
}, nil)
if err != nil {
return err
}
ctx.Export("googleTestRedirectResult", propelauth_social_login_redirect.Google_test_redirect.Redirect_url)
_, err = propelauth.GetSocialLoginRedirect(ctx, &propelauth.GetSocialLoginRedirectArgs{
Environment: "Prod",
}, nil)
if err != nil {
return err
}
ctx.Export("googleProdRedirectResult", propelauth_social_login_redirect.Google_prod_redirect.Redirect_url)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Propelauth = Pulumi.Propelauth;
return await Deployment.RunAsync(() =>
{
var googleTestRedirect = Propelauth.GetSocialLoginRedirect.Invoke(new()
{
Environment = "Test",
});
var googleProdRedirect = Propelauth.GetSocialLoginRedirect.Invoke(new()
{
Environment = "Prod",
});
return new Dictionary<string, object?>
{
["googleTestRedirectResult"] = propelauth_social_login_redirect.Google_test_redirect.Redirect_url,
["googleProdRedirectResult"] = propelauth_social_login_redirect.Google_prod_redirect.Redirect_url,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.propelauth.PropelauthFunctions;
import com.pulumi.propelauth.inputs.GetSocialLoginRedirectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var googleTestRedirect = PropelauthFunctions.getSocialLoginRedirect(GetSocialLoginRedirectArgs.builder()
.environment("Test")
.build());
ctx.export("googleTestRedirectResult", propelauth_social_login_redirect.google_test_redirect().redirect_url());
final var googleProdRedirect = PropelauthFunctions.getSocialLoginRedirect(GetSocialLoginRedirectArgs.builder()
.environment("Prod")
.build());
ctx.export("googleProdRedirectResult", propelauth_social_login_redirect.google_prod_redirect().redirect_url());
}
}
variables:
googleTestRedirect:
fn::invoke:
function: propelauth:getSocialLoginRedirect
arguments:
environment: Test
googleProdRedirect:
fn::invoke:
function: propelauth:getSocialLoginRedirect
arguments:
environment: Prod
outputs:
googleTestRedirectResult: ${propelauth_social_login_redirect.google_test_redirect.redirect_url}
googleProdRedirectResult: ${propelauth_social_login_redirect.google_prod_redirect.redirect_url}
Using getSocialLoginRedirect
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSocialLoginRedirect(args: GetSocialLoginRedirectArgs, opts?: InvokeOptions): Promise<GetSocialLoginRedirectResult>
function getSocialLoginRedirectOutput(args: GetSocialLoginRedirectOutputArgs, opts?: InvokeOptions): Output<GetSocialLoginRedirectResult>
def get_social_login_redirect(environment: Optional[str] = None,
social_provider: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSocialLoginRedirectResult
def get_social_login_redirect_output(environment: Optional[pulumi.Input[str]] = None,
social_provider: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSocialLoginRedirectResult]
func GetSocialLoginRedirect(ctx *Context, args *GetSocialLoginRedirectArgs, opts ...InvokeOption) (*GetSocialLoginRedirectResult, error)
func GetSocialLoginRedirectOutput(ctx *Context, args *GetSocialLoginRedirectOutputArgs, opts ...InvokeOption) GetSocialLoginRedirectResultOutput
> Note: This function is named GetSocialLoginRedirect
in the Go SDK.
public static class GetSocialLoginRedirect
{
public static Task<GetSocialLoginRedirectResult> InvokeAsync(GetSocialLoginRedirectArgs args, InvokeOptions? opts = null)
public static Output<GetSocialLoginRedirectResult> Invoke(GetSocialLoginRedirectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSocialLoginRedirectResult> getSocialLoginRedirect(GetSocialLoginRedirectArgs args, InvokeOptions options)
public static Output<GetSocialLoginRedirectResult> getSocialLoginRedirect(GetSocialLoginRedirectArgs args, InvokeOptions options)
fn::invoke:
function: propelauth:index/getSocialLoginRedirect:getSocialLoginRedirect
arguments:
# arguments dictionary
The following arguments are supported:
- Environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- Environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment String
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - String
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment str
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - str
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment String
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - String
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
getSocialLoginRedirect Result
The following output properties are available:
- Environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - Id string
- The provider-assigned unique ID for this managed resource.
- Redirect
Url string - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- Environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - Id string
- The provider-assigned unique ID for this managed resource.
- Redirect
Url string - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment String
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - id String
- The provider-assigned unique ID for this managed resource.
- redirect
Url String - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- String
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment string
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - id string
- The provider-assigned unique ID for this managed resource.
- redirect
Url string - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- string
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment str
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - id str
- The provider-assigned unique ID for this managed resource.
- redirect_
url str - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- str
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
- environment String
- The environment for which you are configuring the social login. Accepted values are
Test
,Staging
, andProd
. - id String
- The provider-assigned unique ID for this managed resource.
- redirect
Url String - The redirect URL to be white-listed in the OIDC configuration of the social login provider.
- String
- The social login provider for which you are configuring and need the redirect URL. Accepted values are
Google
,Microsoft
,GitHub
,Slack
,LinkedIn
,Atlassian
,Apple
,Salesforce
,QuickBooks
,Xero
,Salesloft
, andOutreach
.
Package Details
- Repository
- propelauth propelauth/terraform-provider-propelauth
- License
- Notes
- This Pulumi package is based on the
propelauth
Terraform Provider.
propelauth 0.4.1 published on Friday, Mar 7, 2025 by propelauth