3e1e0b604f
This adds the oauth2 provider `oidc`. It needs an additional argument, the OIDC discovery endpoint to figure out where the auth and token URLs are. Configuration is similar to setting up the Google Authentication with these changes: * `OAUTH2_PROVIDER = oidc` * `OAUTH2_OIDC_DISCOVERY_ENDPOINT = https://auth.exampe.org/discovery`
16 lines
463 B
Bash
16 lines
463 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Filter out any files with a !golint build tag.
|
|
LINTABLE=$( go list -tags=golint -f '
|
|
{{- range $i, $file := .GoFiles -}}
|
|
{{ $file }} {{ end }}
|
|
{{ range $i, $file := .TestGoFiles -}}
|
|
{{ $file }} {{ end }}' github.com/coreos/go-oidc )
|
|
|
|
go test -v -i -race github.com/coreos/go-oidc/...
|
|
go test -v -race github.com/coreos/go-oidc/...
|
|
golint -set_exit_status $LINTABLE
|
|
go vet github.com/coreos/go-oidc/...
|
|
go build -v ./example/...
|