This extension is for convenient testing of authentication flows on browser.
- Chrome
- Firefox (version >= 115.0.3 )
- Node.js (>= v18.15.0)
- Change directory to the project directory (
/jans-tarp
). - Run
npm install
. - Run
npm run build
. It will create Chrome and Firefox build in/jans-tarp/dist/chrome
and/jans-tarp/dist/firefox
directories respectively. - To pack the build into a zip file run
npm run pack
. This command will pack Chrome and Firefox builds in zip files at/jans-tarp/release
.
- Go to
Settings --> Extensions
of Chrome browser. - Switch on the
Developer mode
. - Click on
Load unpacked
button to load the extension and select the build created in/jans-tarp/dist/chrome
directory.
The extension can directly installed on Firefox browser from https://addons.mozilla.org/en-US/firefox/addon/jans-tarp/.
- In Firefox, open the
about:debugging
page. - Click the
This Firefox
option. - Click the
Load Temporary Add-on
button, then select thejans-tarp-firefox-v{}.zip
zip file from/jans-tarp/release/
.
-
Login to KC admin console
-
Go to
Clients --> Client registration --> Client details --> Trusted Hosts
and set localhost as Trusted Hosts (as your KC is running on localhost).
- Go to
Client scopes
and create a scope with nameopenid
. The assigned type should beOptional
.
Suggestions and pull requests are welcomed!.