Giter Site home page Giter Site logo

Comments (5)

stevemar avatar stevemar commented on May 17, 2024

A quick note, I'm using the latest release, as Hans suggested to another issue, where http was being used, and not https.

from mod_auth_openidc.

zandbelt avatar zandbelt commented on May 17, 2024

I'm able to reproduce this setup just fine, i.e. running on http://localhost:5000 with your original URL and redirect URI settings. Have you checked:

  1. that you use the latest code that produces the following warning in the logs at startup:

    [warn] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
    
  2. that you've set the module to protect a path that includes the redirect_uri

That last thing seems to be your issue because your LocationMatch snippet (which btw. is invisible in the pasted text) does not cover the redirect_uri path v3/OS-FEDERATION/redirect. You could change the LocationMatch expression or change the OIDCRedirectURI and update the client settings in the Google API Console.

from mod_auth_openidc.

zandbelt avatar zandbelt commented on May 17, 2024

auth_openidc.conf says:

# (Mandatory)
# The redirect_uri for this OpenID Connect client; this is a vanity URL
# that must ONLY point to a path on your server protected by this module
# but it must NOT point to any actual content that needs to be served.
#OIDCRedirectURI https://www.example.com/protected/redirect_uri

from mod_auth_openidc.

stevemar avatar stevemar commented on May 17, 2024

LocationMatch should be:

LocationMatch /v3/OS-FEDERATION/identity_providers/.?/protocols/.?/auth
Authtype openid-connect
require valid-user
LogLevel debug
OIDCCookie oidcstate
OIDCCookiePath /v3/
LocationMatch

To answer your questions, I am running on the latest build, because I see: [Mon Jun 09 16:47:02.232808 2014] [:warn] [pid 9035:tid 139832918837056] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
In my log files.

I'll try hardcoding values for now into the LocationMatch. So I guess the redirect would ideally be:
protected_url/redirect?

from mod_auth_openidc.

stevemar avatar stevemar commented on May 17, 2024

Hans, setting the redirect URL to also be protected seems to have fixed the initial issue (hanging after successful sign-in).

I set the LocationMatch to: /v3/OS-FEDERATION/identity_providers/BP/protocols/oidc/auth
And redirect to: http://localhost:5000/v3/OS-FEDERATION/identity_providers/BP/protocols/oidc/auth/redirect

Alright! Getting all the data back! I'll post a follow up if I have any other problems!

from mod_auth_openidc.

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.