sinfin / folio

MIT License
6 stars 2 forks source link

Authentikace skrz BankId.cz #199

Open foton opened 6 months ago

foton commented 6 months ago

Popis jak funguje Omniauth a jak se vyrábí nová Startegie https://github.com/omniauth/omniauth/wiki/Strategy-Contribution-Guide

foton commented 5 months ago

Nastavení pro Aucteu

Fungující auth GET url : https://oidc.sandbox.bankid.cz/auth?client_id=7e68843d-689b-4e13-a213-1f6e2afb8960&redirect_uri=https%3A%2F%2Foidcdebugger.com%2Fdebug&scope=profile.phonenumber%20profile.birthnumber%20profile.zoneinfo%20openid%20profile.gender%20profile.titles%20profile.name%20profile.birthplaceNationality%20profile.locale%20profile.idcards%20profile.maritalstatus%20profile.verification%20profile.legalstatus%20profile.email%20profile.paymentAccounts%20profile.addresses%20profile.birthdate%20profile.updatedat&response_type=token&state=Bank%20iD%20works%21&nonce=9260a018-85f0-4ee6-9696-7f98829649ce&prompt=login&display=page&acr_values=loa3

foton commented 5 months ago

OIDC debugger test nefunguje pro "code" flow (banka vás odmítne), ale pro "token" flow ano. Takže url fungující až dokonce https://oidc.sandbox.bankid.cz/auth ?client_id=7e68843d-689b-4e13-a213-1f6e2afb8960 &redirect_uri=https://oidcdebugger.com/debug &scope=openid &response_type=token &response_mode=query &state=sr4z7rwlgd9 &nonce=kwgmqe9x11c