-
I am evaluating using Ocelot for a project, but I do not, in any way, want to use IdentityServer. A lot of the documentation seems to specifically reference IdentityServer (and the very outdated IdentityServer4), to the point that it isn't clear if it is possible to use Ocelot without SOME amount of IdentityServer set up. I am planning to use GCP Identity Platform for the IdP and want to make sure I can configure Ocelot to use that without having to set up IdentityServer. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, Patrick!
To clarify, the main Ocelot package does not directly reference IdentityServer:
Therefore, using the Ocelot package does not inherently mean you are utilizing IdentityServer functionality.
Indeed, a search for the keyword "IdentityServer" reveals a significant issue: authentication has been developed using IdentityServer4 since 2017. Consequently, our documentation may mislead developers into using IdentityServer4, when in fact, any authentication solution or package with a .NET driver's package can be used. The issue is confined to the
It is indeed possible to use Ocelot without necessarily setting up IdentityServer. Like any ASP.NET Core application, Ocelot's Authentication documentation outlines a variety of authentication providers that can be utilized, such as:
You can configure any authentication provider during the app startup, including Google Auth. For integrating Google authentication, the Google.Apis.Auth.AspNetCore3 library is recommended for ASP.NET Core 3 applications, and for more general purposes, the Microsoft.AspNetCore.Authentication.Google package can be used.
Successful integration with GCP services necessitates a .NET driver with released packages. Allow me to research this... Yahoo... The next library you need to learn is Google.Cloud.Iam.Admin.V1 🥳 P.S. and FYIOcelot doesn't need any direct settings to operate any Auth providers because that's beyond its scope. Ocelot simply executes the code of any attached Auth Sidecar library. The developer is responsible for setting up the auth provider. |
Beta Was this translation helpful? Give feedback.
Hello, Patrick!
It's great news that you're considering using Ocelot for your project. Allow me to assist you in making the final decision. 😉
To clarify, the main Ocelot package does not directly reference IdentityServer:
Therefore, using the Ocelot package does not inherently mean you are utilizing IdentityServer functionality.