mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-18 19:25:13 +00:00
docs: Contribution guidelines (#7443)
* docs: gender neutrality * docs: gender neutrality * docs: gender neutrality * Update docs/docs/concepts/features/identity-brokering.md Co-authored-by: Tim Möhlmann <[email protected]> * Update docs/docs/guides/integrate/login-ui/mfa.mdx Co-authored-by: Tim Möhlmann <[email protected]> * Update docs/docs/guides/integrate/login-ui/passkey.mdx Co-authored-by: Tim Möhlmann <[email protected]> * Update internal/static/i18n/en.yaml Co-authored-by: Tim Möhlmann <[email protected]> * Update internal/static/i18n/en.yaml Co-authored-by: Tim Möhlmann <[email protected]> --------- Co-authored-by: Tim Möhlmann <[email protected]>
This commit is contained in:
@@ -78,11 +78,11 @@ router.Handle("/auth/", z.Authentication)
|
||||
***Authentication checks***
|
||||
|
||||
To ensure the user is authenticated before they are able to use your application, the middleware provides two options:
|
||||
- You can either require the user to be authenticated. If he's not yet, he will be automatically redirected to the Login UI:
|
||||
- You can either require the user to be authenticated. If they haven't already, they will be automatically redirected to the Login UI:
|
||||
```go
|
||||
mw.RequireAuthentication()(handler)
|
||||
```
|
||||
- You can just check if he already is, but still continue serving the page:
|
||||
- You can just check the user's authentication status, but still continue serving the page:
|
||||
```go
|
||||
mw.CheckAuthentication()(handler)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user