-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
A-Registration-FlowRelated to the user registration flowRelated to the user registration flowA-Upstream-OAuthRelated to login via upstream OAuth 2.0 providersRelated to login via upstream OAuth 2.0 providers
Description
Describe the bug
We have enabled both password login with registation token and SSO, current MAS version asks registation token when using SSO which it should not.
To Reproduce
Steps to reproduce the behavior:
- Have MAS config as listed below
- Try to create user (login) with SSO
- In the last step MAS asks for registration token
Expected behavior
When using SSO, no registation token is expected.
Screenshots
Fine up to this point:
After clicking the "Create user" -button, this happens when should not:
Using MAS 1.8.0
Additional context
MAS config snippet for relevant part:
passwords:
enabled: true
schemes:
- version: 1
algorithm: bcrypt
- version: 2
algorithm: argon2id
minimum_complexity: 3
matrix:
kind: synapse
homeserver: hacklab.fi
secret: <redacted>
endpoint: "http://localhost:8008"
upstream_oauth2:
providers:
- id: "<redacted>"
issuer: "https://sso.hacklab.fi/realms/hacklabfi"
human_name: "Hacklab Finland SSO"
brand_name: "Hacklab.fi"
token_endpoint_auth_method: client_secret_basic
client_id: "matrix-authentication-service"
client_secret: "<redacted>"
scope: "openid profile email"
claims_imports:
localpart:
action: ignore
template: "{{ user.preferred_username }}"
displayname:
action: suggest
template: "{{ user.name }}"
email:
action: suggest
template: "{{ user.email }}"
set_email_verification: always
account:
registration_token_required: true
password_registration_enabled: true
Koobetto, sbeach92 and vranki
Metadata
Metadata
Assignees
Labels
A-Registration-FlowRelated to the user registration flowRelated to the user registration flowA-Upstream-OAuthRelated to login via upstream OAuth 2.0 providersRelated to login via upstream OAuth 2.0 providers