I am trying to authenticate using Okta in my xamarin forms project with the Xamarin.Auth library.
I have setup an Okta account as follows:
Client authentication: Use PKCE
Allowed_grant_types: Authorization Code
From my xamarin app loginViewModel.cs page I am using the above as follows;
Scopes = “openid, email”
var authenticator = new OAuth2Authenticator(ClientID,
var Presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
authenticator.Completed += OktaAuthenticator_Completed;
The above seems to work, it allows me
[image] - (Okta authentication page)
The problem is after I get
Authentication Error e.Message=Invalid state from server. Possible forgery!
I’m guessing that is something wrong in my input or that I am missing something. Please advise.