-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpie.txt
10 lines (5 loc) · 1.66 KB
/
httpie.txt
1
2
3
4
5
6
7
8
Login as jdoe
=============
http --form POST http://localhost:8180/auth/realms/spring-boot-quickstart/protocol/openid-connect/token username=jdoe password=jdoe grant_type=password 'Authorization: Basic YXBwLWF1dGh6LXJlc3Qtc3ByaW5nYm9vdDo4NGE1NDdlNi1hZjgwLTRjMWUtOGE0OS03YjQ2ZTJjNGQzMDI='
Acces /belongtojdoe as alice:
http http://localhost:8080/api/belongtojdoe 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJXUkQ3dnEwY2ZXTTJ0UFV1UTc5bjE2dF9fc0hUUF8zdWhQeF9PZFpuN2FVIn0.eyJqdGkiOiI1MDUyNTQ5Mi02MGM3LTRiNGEtYjAzMS02NGI0YmM2MGYxYjUiLCJleHAiOjE1MzIwMTU5MDcsIm5iZiI6MCwiaWF0IjoxNTMyMDE1NjA3LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgxODAvYXV0aC9yZWFsbXMvc3ByaW5nLWJvb3QtcXVpY2tzdGFydCIsImF1ZCI6ImFwcDEiLCJzdWIiOiI1MGNmOWRlMy1kNjFjLTQzNmEtYWE0NC0wZTIxZDAzOWZjODkiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhcHAxIiwiYXV0aF90aW1lIjoxNTMyMDE1NjA3LCJzZXNzaW9uX3N0YXRlIjoiYjM2YjEwMmMtNzA4Mi00YjFkLTljNTgtNDdlOTllZmM0YmY3IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vYXBwMS5sb2wiXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iLCJ1c2VyIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJt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