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

feat: Add possibility to override base Issuer #34

Open
vdbulcke opened this issue Mar 15, 2022 · 0 comments · May be fixed by #35
Open

feat: Add possibility to override base Issuer #34

vdbulcke opened this issue Mar 15, 2022 · 0 comments · May be fixed by #35

Comments

@vdbulcke
Copy link

Description

Creating a http listener on 0.0.0.0 address generates invalid Urls on Discovery Endpoint:

ln, err := net.Listen("tcp", ":8080")

generates this as authorization_endpoint

"authorization_endpoint": "http://[::]:8080/oidc/authorize",

Proposed Fix

Add a IssuerBaseUrl string that can be used to specify the base url to reach the mockoidc server.

Then if the IssuerBaseUrl != "" use it to generate the Urls, otherwise default m.Addr() for backward compatibility

@vdbulcke vdbulcke linked a pull request Mar 15, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant