Skip to content

Commit eb37681

Browse files
committed
docs: provide references to Spring security for authorization
1 parent 89517ef commit eb37681

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

backend/docs/ARCHITECTURE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,8 @@ Note: This is also configured in the frontend (see [../../frontend/docs/ARCHITEC
9595
## Authentication and Authorisation
9696
The application supports [SAML2](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) and OAuth/[OIDC](https://en.wikipedia.org/wiki/OpenID) for authentication and authorisation. You can activate with a configuration one or both on the same instance.
9797

98-
It is recommended for security reasons (i.e. no intermixing issues) to have only one of them per instance activated. If you need to support both you can configure also two instances.
98+
It is recommended for security reasons (i.e. no intermixing issues) to have only one of them per instance activated. If you need to support both you can configure also two instances.
99+
100+
In both cases claims, such as roles or user attributes, are mapped to [Spring Security Authorities](https://docs.spring.io/spring-security/reference/servlet/authorization/architecture.html).
101+
102+
See here how you can use the Spring Security Authorities to manage authorization by using [annotations on the methods](https://docs.spring.io/spring-security/reference/servlet/authorization/method-security.html#authorizing-with-annotations) or [endpoints](https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html#authorizing-endpoints).

backend/docs/CONFIGURE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ By default OIDC claims "scope, scp" are made available as a Spring Authority wit
272272
Independent of this you can also map user attributes to Spring Security Authorities.
273273

274274
Finally, you can optionally define a prefix for each claim in the Spring Security Authorities. If you do not want any prefix just specify an empty String.
275+
276+
See [ARCHITECTURE.md](./ARCHITECTURE.md) on how to use the Spring Security Authorities to define permissions in your application.
275277
```
276278
oidc:
277279
mapper: # map jwt claims to Spring Security authorities

0 commit comments

Comments
 (0)