git.iko.soy/typeable/oauth2-proxy
on master help sign in
Update okta doc (#481)

* updated Okta docs and added localhost example * add changelog entry * added pull request # to changelog Co-authored-by: tbox <tbox@redhat.com> Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

commit7c3efe4f42bc37ccab613fe5002c172e147e3195 authorTrevor Box <56689670+trevorbox@users.noreply.github.com> dateWed 8 Apr 2020, 13:28 (7 years ago) parentf9f98cb
2 files changed+35−1
CHANGELOG.md+1 docs/2_auth.md+34−1
CHANGELOG.md+1
@@ -12,6 +12,7 @@
1212
1313## Changes since v5.1.0
1414
15+- [#481](https://github.com/oauth2-proxy/oauth2-proxy/pull/481) Update Okta docs (@trevorbox)
1516- [#474](https://github.com/oauth2-proxy/oauth2-proxy/pull/474) Always log hasMember request error object (@jbielick)
1617- [#468](https://github.com/oauth2-proxy/oauth2-proxy/pull/468) Implement graceful shutdown and propagate request context (@johejo)
1718- [#464](https://github.com/oauth2-proxy/oauth2-proxy/pull/464) Migrate to oauth2-proxy/oauth2-proxy (@JoelSpeed)
docs/2_auth.md+34−1
@@ -203,7 +203,7 @@ you may wish to configure an authorization server for each application. Otherwis
203203
204204```
205205provider = "oidc"
206−redirect_url = "https://example.corp.com"
206+redirect_url = "https://example.corp.com/oauth2/callback"
207207oidc_issuer_url = "https://corp.okta.com/oauth2/abCd1234"
208208upstreams = [
209209 "https://example.corp.com"
@@ -224,6 +224,39 @@ Generate a unique `client_secret` to encrypt the cookie.
224224
225225Then you can start the oauth2-proxy with `./oauth2-proxy -config /etc/example.cfg`
226226
227+#### Configuring the OIDC Provider with Okta - localhost
228+1. Signup for developer account: https://developer.okta.com/signup/
229+2. Create New `Web` Application: https://${your-okta-domain}/dev/console/apps/new
230+3. Example Application Settings for localhost:
231+ * **Name:** My Web App
232+ * **Base URIs:** http://localhost:4180/
233+ * **Login redirect URIs:** http://localhost:4180/oauth2/callback
234+ * **Logout redirect URIs:** http://localhost:4180/
235+ * **Group assignments:** `Everyone`
236+ * **Grant type allowed:** `Authorization Code` and `Refresh Token`
237+4. Make note of the `Client ID` and `Client secret`, they are needed in a future step
238+5. Make note of the **default** Authorization Server Issuer URI from: https://${your-okta-domain}/admin/oauth2/as
239+6. Example config file `/etc/localhost.cfg`
240+ ```
241+ provider = "oidc"
242+ redirect_url = "http://localhost:4180/oauth2/callback"
243+ oidc_issuer_url = "https://${your-okta-domain}/oauth2/default"
244+ upstreams = [
245+ "http://0.0.0.0:8080"
246+ ]
247+ email_domains = [
248+ "*"
249+ ]
250+ client_id = "XXX"
251+ client_secret = "YYY"
252+ pass_access_token = true
253+ cookie_secret = "ZZZ"
254+ cookie_secure = false
255+ skip_provider_button = true
256+ # Note: use the following for testing within a container
257+ # http_address = "0.0.0.0:4180"
258+ ```
259+7. Then you can start the oauth2-proxy with `./oauth2-proxy -config /etc/localhost.cfg`
227260
228261### login.gov Provider
229262