Skip to content

Commit

Permalink
Merge branch 'master' into blocking-authentication-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo authored Dec 12, 2023
2 parents c76773e + ee60c5a commit 758afe2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/main/docs/guide/authenticationProviders.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ The main api:security.authentication.AuthenticationProvider[] interface is a non
include::{testssecurity}/security/token/basicauth/BlockingAuthenticationProviderUserPassword.java[tag=clazz,indent=0]
----
NOTE: If you need to provide multiple implementations of `BlockingAuthenticationProvider`, then each implementation must have a `@Qualifier` such as `@Named`.

The built-in <<login, Login Controller>> uses every available authentication provider. The first provider that returns a successful authentication response will have its value used as the basis for the JWT token or session state.

Basic authentication which is implemented as an api:security.filters.AuthenticationFetcher[] will also trigger the available api:security.authentication.AuthenticationProvider[]s.

Micronaut comes with authentication providers for LDAP and the OAuth 2.0 password grant authentication flow. For any custom authentication, an authentication provider must be created.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The built-in <<login, Login Controller>> uses every available authentication provider. The first provider that returns a successful authentication response will have its value used as the basis for the JWT token or session state.

Basic authentication which is implemented as an api:security.filters.AuthenticationFetcher[] will also trigger the available api:security.authentication.AuthenticationProvider[]s.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Micronaut comes with authentication providers for LDAP (api:security.ldap.LdapAuthenticationProvider[]) and the OAuth 2.0 password grant authentication flow (api:security.oauth2.endpoint.token.request.password.OauthPasswordAuthenticationProvider[] and api:security.oauth2.endpoint.token.request.password.OpenIdPasswordAuthenticationProvider[]). For any custom authentication, an authentication provider must be created.
5 changes: 4 additions & 1 deletion src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ securityConfiguration:
logoutHandler: Logout Handler
noRedirection: Handlers without redirection
redirection: Redirection Configuration
authenticationProviders: Authentication Providers
authenticationProviders:
title: Authentication Providers
authenticationProvidersUseCases: Authentication Providers Use Cases
builtInAuthenticationProviders: Built-In Authentication Providers
securityRule:
title: Security Rules
ipPattern: IP Pattern Rule
Expand Down

0 comments on commit 758afe2

Please sign in to comment.