Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating an authorization request with AppAuth using the 'plain' PKCE challenge method.
// builds authentication request
NSString *state = [OIDAuthorizationRequest generateState];
NSString *codeVerifier = [OIDAuthorizationRequest generateCodeVerifier];
OIDAuthorizationRequest *request =
[[OIDAuthorizationRequest alloc] initWithConfiguration:configuration
clientId:kClientID
scope:@"openid profile"
redirectURL:redirectURI
responseType:OIDResponseTypeCode
state:state
codeVerifier:codeVerifier
codeChallenge:codeVerifier
codeChallengeMethod:@"plain"
additionalParameters:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment