osin-thirdparty-example

command module
v0.0.0-...-9cbe807 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Unlicense Imports: 1 Imported by: 0

README

go mod init github.com/bartmika/osin-thirdparty-example

go get github.com/spf13/cobra go get github.com/openshift/osin go get github.com/openshift/osincli

go run main.go

browser: http://localhost:8001/

Step 1: In your osin-example project run:

go run main.go add_client --client_id=thirdparty \
                          --client_secret=pleasechange \
                          --redirect_uri=http://127.0.0.1:8001/appauth/code

Step 2: In your osin-thirdparty-example project please run the following:

go run main.go serve --client_id=thirdparty \
                     --client_secret=pleasechange \
                     --redirect_uri=http://127.0.0.1:8001/appauth/code \
                     --authorize_uri=http://localhost:8000/authorize \
                     --token_url=http://localhost:8000/token

Step 3: In your browser, go to http://127.0.0.1:8001. Click the Login link and you will be redirected to the osin auth server. Fill in your credentials that you created previously and then you will be taken to the success page.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL