buildAuthorizeUrl static method
Build authorize URL
Implementation
static Future<String> buildAuthorizeUrl(AuthRequest authRequest) async {
String? secret = authRequest.clientSecret;
return 'https://' +
Util.getHost(Authing.config) +
'/oidc/auth?_authing_lang=' +
authRequest.authingLang +
"&app_id=" +
Authing.sAppId +
"&client_id=" +
Authing.sAppId +
"&nonce=" +
authRequest.nonce +
"&redirect_uri=" +
authRequest.redirectUrl +
"&response_type=" +
authRequest.responseType +
"&scope=" +
authRequest.scope +
"&prompt=consent" +
"&state=" +
authRequest.state +
(secret == null
? "&code_challenge=" +
authRequest.codeChallenge +
"&code_challenge_method=S256"
: "");
}