Is Restier compatible with Microsoft.AspNetCore.Identity ? #756
Replies: 2 comments 2 replies
-
Since you fully control the URLs for Restier APIs, they can co-exist with Identity APIs just fine. If you need to authorize your the whole API app, you can add this to services.Configure<AuthorizationOptions>(options => options.FallbackPolicy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build()); Then you can use Would recommend separate controllers be put into Areas for logical code separation from Restier controllers. HTH! |
Beta Was this translation helpful? Give feedback.
-
@robertmclaws, thank you for your response. Here is a link that quickly explains Identity in DotNet 8 This is just a Swagger issue, as Restier and Identity endpoints work fine with Postman. Using AddRestierSwagger overrides Identity endpoints for Swagger UI. Without this, these are well displayed but not those of Restier. It would be nice to make Identity work with Restier. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is Restier compatible with Microsoft.AspNetCore.Identity ?
Can the identity endpoints can be shared with those of the Restier API in Swagger ?
And how to add authorizations to the Restier API endpoints ?
Thank you in advance for your answers.
Beta Was this translation helpful? Give feedback.
All reactions