-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest version not working with CustomFlow #548
Comments
I deleted all my openIddict tables, and wipes the initialCreate so all has setup fresh... Using the following code
... save later noticed there are a properties and permissions column now in openiddictapplications table, but they are blank?? |
Applications must now be granted permissions to use the OAuth2/OIDC endpoints/flows. The migration guide I wrote includes a script that adds all the permissions to existing applications. Since you didn't follow it, your Simply add the permissions you need and it will work. E.g: var descriptor = new OpenIddictApplicationDescriptor
{
ClientId = "api",
DisplayName = "m2iActiv Api",
RedirectUris = { new Uri("http://www.my-url.com/signin-oidc") },
PostLogoutRedirectUris = { new Uri("http://www.my-url.com/") },
Permissions =
{
OpenIddictConstants.Permissions.Endpoints.Token,
OpenIddictConstants.Permissions.GrantTypes.Password,
OpenIddictConstants.Permissions.GrantTypes.RefreshToken,
OpenIddictConstants.Permissions.Prefixes.GrantType + "your custom grant type name",
}
}; |
For the record, the application permissions feature is now optional. It's documented here: https://openiddict.github.io/openiddict-documentation/features/application-permissions.html |
Not sure which version i was using before, 2.0.0-* but custom flows were working fine. Now i have updated and my custom flows are broken.
I am getting an error saying
Any idea why i am getting this??
The text was updated successfully, but these errors were encountered: