Skip to content

Instantly share code, notes, and snippets.

@MO-ska
Created December 1, 2023 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MO-ska/3c57bc96cc91c638372ed8f7ab76a3f2 to your computer and use it in GitHub Desktop.
Save MO-ska/3c57bc96cc91c638372ed8f7ab76a3f2 to your computer and use it in GitHub Desktop.
curl --location --request POST 'https://mcl.opi.org.pl/auth/realms/OPI/protocol/openid-connect/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'client_id=polon2'
--data-urlencode 'grant_type=password'
--data-urlencode 'username=nazwaUżytkownika'
--data-urlencode 'password=hasłoUżytkownika'
--data-urlencode 'totp=999999'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment