Commit graph

155 commits

Author SHA1 Message Date
adlerhurst
7700cb3539 fix: implement storage 2020-09-10 15:43:21 +02:00
Livio Amstutz
8f07a5b9c9 feat: add possibility to add verifier opts to default RP 2020-09-10 15:19:55 +02:00
Livio Amstutz
f645dd3543
fix: unmarshalling of audience as array (#53) 2020-09-10 08:35:37 +02:00
Livio Amstutz
eaf47fde8e change some interfaces 2020-09-09 16:00:19 +02:00
Livio Amstutz
bfbd4adb1c some ideas to implement jwt client assertion 2020-09-08 17:09:27 +02:00
Livio Amstutz
a37a8461a5 lot of unfinished changes 2020-09-08 16:07:49 +02:00
Livio Amstutz
9cb0fff23f Merge remote-tracking branch 'origin/service-accounts' into service-accounts 2020-09-07 12:40:54 +02:00
adlerhurst
7487af3db4 add func for creating JWT token 2020-09-07 12:39:22 +02:00
Livio Amstutz
6a0dd7c270 Merge branch 'master' into service-accounts
# Conflicts:
#	pkg/oidc/authorization.go
2020-09-07 12:36:10 +02:00
Livio Amstutz
abd3b6f521
fix: handle single aud string claim, extract en/decoder interface, comments (#51)
* en/decoding abstraction

* some comments

* fix token validation and error messages

* fix: audience mapping (single aud string)

* fix tests with VerifyIdToken

* reformat imports

* go mod tidy

* Update pkg/oidc/authorization.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* Update pkg/oidc/authorization.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* Update pkg/op/authrequest_test.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* fix capitalization

Co-authored-by: Silvan <silvan.reusser@gmail.com>
2020-09-07 12:32:35 +02:00
adlerhurst
7a109a763d feat: service account token exchange 2020-09-02 17:52:22 +02:00
Livio Amstutz
c828290ef1
fix: improve interceptor handling (#49) 2020-08-28 14:51:38 +02:00
Livio Amstutz
d02653e75d
fix: add authorization to cors (#48) 2020-08-24 16:08:07 +02:00
Fabi
b2b25c5b8c
Merge pull request #47 from caos/fix-cors
fix: cors
2020-08-24 08:19:29 +02:00
Livio Amstutz
6e71c17f1d pass origin into GetUserinfoFromToken 2020-08-24 07:52:22 +02:00
Livio Amstutz
57cf8ee9c7
fix: add code_challenge_methods_supported to discovery endpoint (#43)
* fix: add code_challenge_methods_supported to discovery endpoint

* fix mock
2020-08-20 16:27:51 +02:00
Livio Amstutz
c88e6b4ab3 fix: explicit allow Origin from request 2020-08-10 15:49:32 +02:00
Fabi
c6e22dff69
feat: dev mode on client, check client configuration (#41)
* fix: tests

* fix: tests

* fix: tests
2020-08-06 13:10:49 +02:00
Fabi
3507057c66
fix: remove bracket (#40) 2020-07-29 09:01:13 +02:00
JCustin
e6356f101d
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:26:14 -07:00
JCustin
c68975601b
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:26:04 -07:00
JCustin
b2d043a84f
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:25:53 -07:00
JCustin
f552b1cd3f
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:25:41 -07:00
JCustin
f6f8cbacc5
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:25:25 -07:00
JCustin
cd1c3642d1
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:25:17 -07:00
JCustin
d653ed7112
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:25:08 -07:00
JCustin
858a52759a
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:24:59 -07:00
JCustin
9c8698da56
Update pkg/op/authrequest.go
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
2020-07-28 13:24:48 -07:00
JCustin
e54ab63c1c
Update authrequest.go
Rewrote error messages with a consistent structure to explain said errors, as well as a transition to the administrator's contact information. The administrator's information will needed to be plugged in by a more knowledgeable contributor.

Note that because I am not familiar with Go, some of the error messages may have an incorrect explanation for the error. I encourage a double check on the terminology and logic explained in my messages. If there are any errors, please correct the terminology and logic while retaining the sentence structure.
2020-07-27 19:19:14 -07:00
Livio Amstutz
2966355b0e
fix: add authorizations to userinfo (#37) 2020-07-09 13:40:32 +02:00
Livio Amstutz
628bc4ed65
fix: end session (#35)
* fix: handle code separately

* fix: option to ignore expiration on id_token and error handling

* fix: op handler as http.Handler

* fix: terminate session possible wihtout id_token_hint
2020-07-06 12:52:22 +02:00
Livio Amstutz
58545a1710
fix: handle code separately (#30) 2020-05-29 09:40:34 +02:00
Stefan Benz
303fdfc421
fix(cli): added implementation for token to client for caching (#29) 2020-05-27 19:00:28 +02:00
Stefan Benz
b52fd090a7
feat(cli): added implementation for codeflow with a cli (#26) 2020-04-30 07:08:30 +02:00
livio-a
a8d10945d8
feat: preselect user with id_token_hint (#16)
* feat: preselect user with id_token_hint

* fix tests
2020-03-11 09:41:54 +01:00
livio-a
2b9f7dfd18
Fix: userinfo (#15)
* add idea to gitignore

* working userinfo

* cleanup

* tests
2020-03-06 17:14:30 +01:00
Livio Amstutz
5af734d72f fix: add missing WithCustomEndSessionEndpoint 2020-03-04 09:05:15 +01:00
Livio Amstutz
e8f3010910 feat: terminate session (front channel logout) 2020-03-03 11:31:23 +01:00
Livio Amstutz
4cf6c6d5f0 fix: another typo 2020-02-28 18:11:38 +01:00
Livio Amstutz
df432c8806 fix: typo 2020-02-28 18:09:57 +01:00
Livio Amstutz
d7befc087d Merge branch 'master' of github.com:caos/oidc 2020-02-28 18:07:07 +01:00
Livio Amstutz
c3169868d8 fix: code challenge 2020-02-28 18:07:01 +01:00
Livio Amstutz
4de855dc21 Merge remote-tracking branch 'origin/master' into token 2020-02-27 17:40:31 +01:00
Livio Amstutz
5e7e5ebe3a fix: create access token from storage 2020-02-27 17:06:32 +01:00
livio-a
d25ffbe029
Merge pull request #12 from caos/cors
feat: add cors * to handler
2020-02-27 13:04:15 +01:00
Livio Amstutz
3f97c5c3ed feat: add cors * to handler 2020-02-27 12:56:47 +01:00
livio-a
7f486a54c4
Merge pull request #11 from caos/feat/customEndpoints
feat: custom absolute endpoints
2020-02-27 09:45:27 +01:00
Livio Amstutz
c3e583bbf9 fix: add missing WithCustomKeysEndpoint 2020-02-27 09:04:04 +01:00
Livio Amstutz
660519a19f fix: custom absolute endpoints 2020-02-21 10:04:50 +01:00
Livio Amstutz
a2e2f064a2 fix: change channel for GetSigningKey to time 2020-02-14 12:54:26 +01:00