Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curityio/nordicapis-python-openid-connect-client
Nordic APIs OpenID Connect workshop source code
https://github.com/curityio/nordicapis-python-openid-connect-client
code-example oauth2 openid-connect website
Last synced: about 2 months ago
JSON representation
Nordic APIs OpenID Connect workshop source code
- Host: GitHub
- URL: https://github.com/curityio/nordicapis-python-openid-connect-client
- Owner: curityio
- License: apache-2.0
- Created: 2016-10-24T08:50:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-11T08:57:44.000Z (over 1 year ago)
- Last Synced: 2024-05-03T11:03:45.621Z (9 months ago)
- Topics: code-example, oauth2, openid-connect, website
- Language: Python
- Homepage:
- Size: 163 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuth/OpenID Connect Workshop
[![Quality](https://img.shields.io/badge/quality-demo-red)](https://curity.io/resources/code-examples/status/)
[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)This is a OpenID Connect example, used as an assigment in the OAuth2 and OpenID Connect workshop given by Curity AB.
## Dependencies
**python 3.7 (tested with python 3.7.4)
**OpenSSL 1.0** to be able to do modern TLS versions.
## Running the app
```bash
$ pipenv shell
$ python app.py
```Flask will start a web server listening on all interfaces. The webserver will by default use HTTPS with a selfsigned certificate for localhost.
Browse to https://localhost:5443 to see the app.## client_config.json
client_config.json is used as a configuration file for the example app. Change the values to match your system.Name | Type | Mandatory | Default | Description
----------------| ------- | :-------: | -------- | :---------------
`redirect_uri` | string | ✓ | | The redirect uri to use, must be registered for the client at the OpenID Connect server.
`client_id` | string | ✓ | | The id for the client. Used to authenticate the client.
`client_secret` | string | ✓ | | The shared secret to use for authentication against the token endpoint.
`issuer` | URI | ✓ | | The OAuth2/OpenID Connect issuer.
`scope` | string | | | The scopes to ask for. Space separated string.
`verify_ssl_server` | boolean | | `true` | Set to false to disable certificate checks.
`debug` | boolean | | `false` | If set to true, Flask will be in debug mode and write stacktraces if an error occurs
`port` | number | | `9080` | The port that the Flask server should listen to
`base_url` | string | | | base url to be added to internal redirects. Set this to enable the client to be behind a proxy.## Questions and Support
For questions and support, contact Curity AB:
> Curity AB
>
> [email protected]
> https://curity.ioCopyright (C) 2019 Curity AB.