private string GetAuthorisationUrl(string codeVerifier) { var details = new AuthorisationCodeDetails(codeVerifier, "http://localhost:5000/"); var scopes = _config.GetSection("requiredScopes").Get <List <string> >(); details.AuthorisationUri = BuildAuthorisationUri(_config.GetSection("clientId").Value, details.RedirectUri, details.CodeChallenge, "fh82hfosdf8h", string.Join("%20", scopes)); return(details.AuthorisationUri); }
private string GetAuthorisationUrl(string codeVerifier) { var details = new AuthorisationCodeDetails(codeVerifier, "http://localhost:5000/"); var scopes = _appSettings.RequiredScopes; details.AuthorisationUri = BuildAuthorisationUri( _appSettings.ClientId, details.RedirectUri, details.CodeChallenge, "fh82hfosdf8h", string.Join("%20", scopes) ); return(details.AuthorisationUri); }
public AuthenticationManager(IConfigurationRoot config) { _config = config; _codeVerifier = AuthorisationCodeDetails.CreateCodeVerifier(); _httpClient = new HttpClient(); }
public AuthenticationManager(AppSettings settingsConfig) { _appSettings = settingsConfig; _codeVerifier = AuthorisationCodeDetails.CreateCodeVerifier(); _httpClient = new HttpClient(); }