Giter Club home page Giter Club logo

Comments (14)

josdeweger avatar josdeweger commented on June 19, 2024 1

ok, so figured out what was the issue in our case. I set the Azure Enterprise App application id as entityId, instead I should ofcourse have used the Entity Id. Strange to get a 405 on this. I also noticed that the return url is case sensitive, so redirecting doesn't work if the url's don't match case

from onpremises.

edgrip avatar edgrip commented on June 19, 2024 1

Your case may have been already solved by issue #8.

You have to adjust structurizr.saml.maxAuthenticationAge property to higher (90 days ?) than the default value (2 hours): https://structurizr.com/share/18571/documentation#max-authentication-age

from onpremises.

samm-git avatar samm-git commented on June 19, 2024 1

Thank you for the screenshot, i fixed it now :)

Issue (for me) was that i disabled "sign document" function. Just in case if anyone need, sending my KC screenshot of the working configuration:
Screenshot 2023-06-15 at 18 39 54
Screenshot 2023-06-15 at 18 40 10
Screenshot 2023-06-15 at 18 40 30

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 19, 2024 1

That's great, thanks. Would you consider sending a PR for the docs please?

https://github.com/structurizr/onpremises/blob/main/docs/docs/04-authentication.md#keycloak

from onpremises.

albertdabrowski avatar albertdabrowski commented on June 19, 2024 1

Thanks @samm-git that was also a problem on my side. Once I enabled SAML signed request then it started to work. BTW, to do that I had to export cert from jks existing on repo for structurizr onprem and upload it to Okta so then it was possible to enable it.

from onpremises.

glauberrs avatar glauberrs commented on June 19, 2024 1

Hi people, i face the same problem with Azure AD and I resolved creating group claim on Enterprise Application:

image

from onpremises.

josdeweger avatar josdeweger commented on June 19, 2024

we are running into the same issue. Our configuration looks pretty similar to the OP's, we are also getting a 405 Method not allowed on the /saml/sso endpoint. In the logs we see the following error:

DefaultHandlerExceptionResolver - Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported

but for completeness sake:

  • our Structurizr app is running in an Azure Appservice
  • version 3040
  • we created an AAD Enterprise Application with return url {my-app-name}/saml/sso (where {my-app-name} is a placeholder for our real app name of course)
  • added the structurizr.properties and saml-idp-metadata.xml files and restarted the appservice

structurizr.properties:

structurizr.authentication=saml
structurizr.url=https://{my-app-name}.azurewebsites.net
structurizr.saml.entityId={client id of the AAD Enterprise Application}

from onpremises.

HugKL avatar HugKL commented on June 19, 2024

Same problem wit keycloak here. Already tried to change the max-authentication-age to 8h, 24h, and 90 days, and didn't worked.

from onpremises.

samm-git avatar samm-git commented on June 19, 2024

Same on my side, KC+structurizr

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 19, 2024

Somebody on the Slack group (onpremises channel) has mentioned that the instructions for Keycloak are out of date, and posted an updated screenshot. You may want to jump on there and take a look.

image

Alternatively, you may want to try forcing authentication -> https://structurizr.com/share/18571/documentation#force-authentication (although this seems to be related to issues with Azure AD).

from onpremises.

samm-git avatar samm-git commented on June 19, 2024

Done, #47

from onpremises.

albertdabrowski avatar albertdabrowski commented on June 19, 2024

Have similar problem when integrating with Okta. I receive on server logs
DefaultHandlerExceptionResolver - Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported].
This is on the returning from already authenticated user on /saml/SSO

Did anyone resolved that problem? why structurizr is not accepting POST on that url.

from onpremises.

samm-git avatar samm-git commented on June 19, 2024

In my case it was disabled signing on the request, please check your settings.

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 19, 2024

Closing since the OP hasn't responded, so I'm assuming this is resolved ... please open new issues/discussions as needed.

from onpremises.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.