Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blocks:sso:adfs [2021-06-16 08:32] – link to main config file article admin | blocks:sso:adfs [2026-11-11 06:52] (current) – Updated according to the newest ADFS changes joao | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===Prerequisites=== | ===Prerequisites=== | ||
| - | To be able to follow the steps below you'll need to have Windows Server 2016 or later with the " | + | To be able to follow the steps below you'll need to have Windows Server 2016 or later with the " |
| ===Add an OpenID Connect configuration to ADFS=== | ===Add an OpenID Connect configuration to ADFS=== | ||
| Line 17: | Line 17: | ||
| - Paste and add the **Client Identifier** (from step 6) as the " | - Paste and add the **Client Identifier** (from step 6) as the " | ||
| - Select the access control policy you'd like to use and click next. | - Select the access control policy you'd like to use and click next. | ||
| - | - Make sure the box next to " | + | - Make sure the boxes next to " |
| - | - Click the "New scope..." | + | |
| - Finish the wizard. | - Finish the wizard. | ||
| Line 35: | Line 34: | ||
| ====Blocks specific steps==== | ====Blocks specific steps==== | ||
| - | - Open your Blocks configuration file on your Blocks server and add the " | + | - Open your Blocks configuration file on your Blocks server and add the " |
| * < | * < | ||
| server: | server: | ||
| + | type: pixilab_server | ||
| + | requireHttps: | ||
| auth: | auth: | ||
| - | urlResolver: | ||
| - | ajaxRequestResolver: | ||
| - | callbackUrl: | ||
| - | rolesOwner: attributes | ||
| - | rolesPath: roles | ||
| - | clients: | ||
| - | - org.pac4j.oidc.client.OidcClient: | ||
| - | configuration: | ||
| - | discoveryURI: | ||
| - | clientId: [CLIENT-ID] | ||
| - | secret: [CLIENT-SECRET] | ||
| - | clientAuthenticationMethod: | ||
| - | scope: openid | ||
| servlet: | servlet: | ||
| security: | security: | ||
| - matchers: internalMatcher | - matchers: internalMatcher | ||
| - | | + | authorizers: |
| - | | + | |
| + | clients: | ||
| + | callbackUrl: | ||
| + | rolesOwner: attributes | ||
| + | rolesPath: roles | ||
| + | oidc: | ||
| + | discoveryURI: | ||
| + | clientId: [CLIENT-ID] | ||
| + | secret: [CLIENT-SECRET] | ||
| + | clientAuthenticationMethod: | ||
| + | scope: openid | ||
| + | mappedClaims: | ||
| + | | ||
| </ | </ | ||
| + | |||
| - Start Blocks and go to "/ | - Start Blocks and go to "/ | ||
| Line 64: | Line 65: | ||
| ===Role Mapping=== | ===Role Mapping=== | ||
| - | Since the groups you've configured for your users in your windows server | + | Since the groups you've configured for your users in your windows server |
| < | < | ||
| rolesMapping: | rolesMapping: | ||
| Line 75: | Line 76: | ||
| </ | </ | ||
| + | However, if you want to fine-tune specific User's roles and what they can access to, utilizing Block' | ||
| + | |||
| + | For example: John belongs to an ADFS group called " | ||
| ====Filter the groups provided to Blocks==== | ====Filter the groups provided to Blocks==== | ||
| - | In the section named **Configure OpenID Connect to provide user groups to Blocks** we add a configuration that will provide Blocks with all of the user's groups. This may not be wanted since there can be thousand | + | In the section named **Configure OpenID Connect to provide user groups to Blocks** we add a configuration that will provide Blocks with all of the user's groups. This may not be wanted since there can be thousands |
| ===Configure OpenID Connect to provide user groups to Blocks=== | ===Configure OpenID Connect to provide user groups to Blocks=== | ||