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

The OID_REDIRECT_PATH == http://localhost/<the_value_from_OID_REDIRECT_PATH> #5

Open
AdeOpe opened this issue Nov 26, 2018 · 4 comments

Comments

@AdeOpe
Copy link

AdeOpe commented Nov 26, 2018

Hi,
the OID_REDIRECT_PATH always resolves to http://localhost/<the_value_from_OID_REDIRECT_PATH>

however if you want to resolve to a different url (e.g. when using this with AWS cognito), this fails

@AdeOpe AdeOpe changed the title The OID_REDIRECT_PATH == localhost The OID_REDIRECT_PATH == http://localhost/<the_value_from_OID_REDIRECT_PATH> Nov 26, 2018
@Starefossen
Copy link
Contributor

Good catch, @AdeOpe 🙂 Can you test with an absolute path starting with a /my-redirect-path?

@AdeOpe
Copy link
Author

AdeOpe commented Nov 26, 2018

@Starefossen, sorry could you please clarify what you would like me to do?
my callback url in aws cognito is :

https://<dns>/oauth2/idpresponse"

so when i tried set the OID_REDIRECT_PATH to

https://<dns>/oauth2/idpresponse
or
/https://<dns>/oauth2/idpresponse

it gets set to
http://localhost//https:/<dns>/oauth2/idpresponse
or
http://localhost//https://<dns>/oauth2/idpresponse

@malagant
Copy link

Any news on this? You seemed to use a complete URL instead of a URI path. I get the same when using a complete URL

@stehefan
Copy link

As far as I can see from the documentation of lua-resty-openidc, the feature to set an absolute URL got introduced in version 1.7.0. This Dockerfile still uses 1.6.1, so this feature is not available. See also documentation for Version 1.7.0

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

4 participants