Skip to content

Unable to login to application with another tenant's Email #372

Description

@hatifmujahid

Hi,

I wanted some help to be able to have multi-tenant login using Django-Auth-ADFS. Our usecase is to login to a web application using Microsoft SSO whereby the email of the person logging in is matched with already existing users and this creates a JWT token for web access.

I have setup the app registration in azure as multi-tenant. I am also attaching the AUTH_ADFS in settings.py

AUTH_ADFS = {
"AUDIENCE": "common",
"CLIENT_ID": CLIENT_ID,
"CLIENT_SECRET": CLIENT_SECRET,
"TENANT_ID": TENANT_ID,
"RELYING_PARTY_ID": CLIENT_ID,
"RESOURCE": CLIENT_ID,
"USERNAME_CLAIM": "upn",
"CLAIM_MAPPING": {

},
"GROUPS_CLAIM": "roles",
"MIRROR_GROUPS": True,
"LOGIN_EXEMPT_URLS": ["api/logout", "public/"],

}

Can anyone help I am really stuck with this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions