Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help locating sp metadata URL to provide to Idp #226

Closed
nicolecurrens opened this issue Nov 28, 2023 · 2 comments
Closed

Help locating sp metadata URL to provide to Idp #226

nicolecurrens opened this issue Nov 28, 2023 · 2 comments
Labels
no-issue-activity Stale action

Comments

@nicolecurrens
Copy link

This is my first time working on a SAML integration and I'm a bit confused. We need to provide an sp metadata URL to our Idp and we can't figure it out. I'm running my django application locally.

In my urls.py, I have
import django_saml2_auth.views

and

urlpatterns = [
 re_path(r'^sso/', include('django_saml2_auth.urls')),
...
]

In settings, I have

INSTALLED_APPS = [
    '...',
    'django_saml2_auth',
]

And

SAML2_AUTH = {
    # Metadata is required, choose either remote url or local file path
    'METADATA_AUTO_CONF_URL': <Our URL>,
    'ENTITY_ID': 'http://django:8000/sso/sp',
}

When I go to any of the URLs (ex. /sso/sp), I get the permission denied page. We haven't set up the SAML integration with our provider yet because they need the sp metadata URL before they can set up things on their end. Can someone let me know where to find this URL? All the views in the app seem to require the SAML integration to already be set up.

@mostafa
Copy link
Member

mostafa commented Dec 11, 2023

Hey @nicolecurrens,

It is the identity provider that provides you with a metadata URL. Usually you'll find the metadata URL on the application you create on the admin page of the identity provider, for example, read this question on the Okta forum. Also, this library cannot act as an identity provider.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the no-issue-activity Stale action label Jan 11, 2024
@mostafa mostafa closed this as completed Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity Stale action
Projects
None yet
Development

No branches or pull requests

2 participants