Last active
January 27, 2021 15:42
-
-
Save Tanver-Hasan/0d64b2b2a0ea81236954937ad7543dad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var auth0 = new auth0.WebAuth({ | |
clientID: environment.auth0.client_id, | |
domain: environment.auth0.domain, | |
responseType: environment.auth0.responseType, | |
audience: environment.auth0.audience, | |
redirectUri: environment.auth0.callbackurl, | |
scope: environment.auth0.scope, | |
}); | |
const params = { | |
// allow_login: true, | |
app_version: "v1" | |
prompt: "login" | |
}; | |
this.auth0.authorize(params); | |
Access the additional parameters in the hosted login page like below
console.log(config.extraParams.app_version);
Access the additional parameters in the rule like below
console.log(context.request.query.app_version);
.NET SDK.
var client= new Auth0Client(clientOptions);
var extraParameters= new Dictionary<string,string>();
extraParameters.Add("connection","CONNECTION_NAME")
var loginResult= await client.LoginAsync(extraParameters, new CancellationToken());
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Auth0.Swift