Skip to content

lauritzh/oidc-custom-sp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Custom OpenID Connect Service Provider

Custom and flexible OpenID Connect SP for research and PoC purposes - built with Node.js.

Disclaimer: Any information shared within this repository must not be used with malicious intentions. Proof-of-Concepts and tools are shared for educational purpose only. Any malicious use will not hold the author responsible.

Setup

user@laptop:/$ git clone https://github.com/lauritzh/oidc-custom-sp
[...]
user@laptop:/$ cd oidc-custom-sp/
user@laptop:/oidc-custom-sp$ node sp.js 
[+] Example SP listening for HTTPS on Port 4001 :-)
[+] Example SP listening for HTTP  on Port 4000 :-)

(This requires Node.js on your machine)

You may add "127.0.0.1 poc.local" to your /etc/hosts-file, so that you can reach the SP at https://poc.local:4001/

Intercepting Proxy

By using the global-agent Node.js module, it is possible to intercept the backend traffic such as the Token Request and Userinfo Request:

$ npm i global-agent
$ export GLOBAL_AGENT_HTTP_PROXY=http://127.0.0.1:8080
$ node -r 'global-agent/bootstrap' sp.js 

About

Custom and flexible OpenID Connect SP for research and PoC purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published