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

SAML AZURE #14663

Open
2 tasks done
emorvan1987 opened this issue Apr 30, 2024 · 11 comments
Open
2 tasks done

SAML AZURE #14663

emorvan1987 opened this issue Apr 30, 2024 · 11 comments

Comments

@emorvan1987
Copy link

Debug mode

Describe the bug

When i tried to connect with my Azure credentials, i have this error message :
AADSTS50011: The reply URL 'http://assets.xxx.fr/public/saml/acs' specified in the request does not match the reply URLs configured for the application 'https://assets.xxx.fr/public'. Make sure the reply URL sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/urlMismatchError to learn more about how to fix this

Reproduction steps

  1. Configure SAML On Azure through App registration and App Enterprise
  2. Configure SAML on SNIPE-IT
  3. Add Groups to connect to App Enterprise
  4. Connect with Azure Credentials
  5. Stay Sign-in
  6. Error
    ...

Expected behavior

In Azure i cannot put http for a reply URL
However, Snipe-it asks me to do it

Screenshots

Capture d'écran 2024-04-30 075259

Snipe-IT Version

v6.3.0 build 12490 (g9136415bb)

Operating System

Windows Server 2022

Web Server

Apache

PHP Version

8.1.27

Operating System

Windows 11

Browser

Edge and Firefox

Version

Firefox : 125.0.2 / Edge 124.0.2478.67

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Snipe-IT installed with WAMP

Copy link

welcome bot commented Apr 30, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@knd775
Copy link

knd775 commented Apr 30, 2024

You have to use https for saml to work.

@emorvan1987
Copy link
Author

@knd775
Of course i have to use https.
Unfortunately, I set https on Azure but snipeIT responds with http.

The request http is set on SnipeIT.

Thank you
Regards

@snipe
Copy link
Owner

snipe commented May 1, 2024

You have to use https on your Snipe-IT install then, and make sure the APP_URL is https, not http

@emorvan1987
Copy link
Author

Hi @snipe ,

Thank you for your answer.
So if i understand well, i need to reinstall SnipeIT or can i change it in a conf file ?

Thank you
Regards

@emorvan1987
Copy link
Author

Hello,

Could you please tell me if you have any ideas to help me about this issue ?

Thank you
Reagrds

@knd775
Copy link

knd775 commented May 13, 2024

You don't need to reinstall. Just change the URL to https wherever you have it configured.

@emorvan1987
Copy link
Author

Hello @knd775

Thank you for your reply.

So if i understand well, i need to change the APP_URL with https.
However, in my env file, the APP_URL is already on https.

Is it another file where APP_URL is set ?

Thank you
Regards

@knd775
Copy link

knd775 commented May 14, 2024

Sorry, but I'm not able to help much beyond that. I run the application in Docker, so how it's configured works a bit differently.

@emorvan1987
Copy link
Author

Hello @knd775,

Thank you for your time and your replies.

I hope someone else can help me about it.

@snipe
Copy link
Owner

snipe commented May 16, 2024

Is it another file where APP_URL is set ?

No, it's only set in the .env.

Make sure the URL you're using in Azure for the Snipe-IT endpoint is also https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants