English 中文(简体)
HTTP 要求用异构体进行关键分解
原标题:HTTP request to keycloak with insommia

我正在与基茨洛卡公司和 Nest公司一道,为新服安装一个安全后盾。 我向客户和用户进口了我的现场,我正试图通过Insomnia获得象征性和受保护的数据。

争取达到终点:<代码>{__.baseUrl /protocol/ openid-link/auth 请求通过JSON提供数据

keycloak-1  | 2024-03-11 16:01:56,436 WARN  [org.keycloak.protocol.oidc.endpoints.request.AuthorizationEndpointRequestParserProcessor] (executor-thread-131) Parameter  client_id  not present or present multiple times in the HTTP request parameters
keycloak-1  | 2024-03-11 16:01:56,437 WARN  [org.keycloak.events] (executor-thread-131) type="LOGIN_ERROR", realmId="55542514-fc71-4e4e-be3e-42af869de2a7", clientId="null", userId="null", ipAddress="172.18.0.1", error="invalid_request"

页: 1 请求书错误,载于Insomnia应答书审查窗口。

首先,我只是通过我的全权证书,错误使我重新思考整个事项,通过客户——坦率和客户——以及JSON数据,但错误还是一样。

I was following this tutorial ,但似乎并不适合于Keccloak环境

如何通过Insomnia达到我的关键格洛卡终端点,以及今后如何获得更多的平均标识?

问题回答

Insomina是一纸空文。

Overview

“entergraph

#0 Keycloak launching Detail in here

查阅

POST "http://localhost:8180/realms/master/protocol/openid-connect/token"

#1 Crete New Collection

“entergraph

#2 姓名:Keycloak

“entergramprofile

#3 Click Gear Icon for setting

enter image description here

#4 环境

{
    "baseUrl": "http://localhost:8180",
    "username": "admin",
    "password": "admin",
    "access-token": ""
}

“在此处的影像描述”/</a

#5 Add HTTP Request

https://i.stack.imug.com/KZws1.peng” tra=“noestlow noreferer”

#6-7 制作Get-Token<>/code>,由《组织指南》

“entergraph

#8 CTRL + Space Can add get environment variable

detail in here

“enter

页: 1 使URL与环境变异

{{ _.baseUrl }}/realms/master/protocol/openid-connect/token

“entergraph

#10 增 编 缩略语

“entergraph

“entergraph

这与《邮递名录》中的<代码>/x-www-form-urlencoded相同。

“enterography

#11~13 Add 4 keys/value

用户名称和密码来自环境变量

By CTRL + Space

enter image description here

“在座的影像描述”/</a

#14 Get token Click Send

成果

“entergraph

Bonus

How to use an access-token?

Add Request Get user list enter image description here

#1 Open Base Environment In the access-token place cursor inside ""

CTRL+ Space

缩略语 Response => Body Attribute

“entergraph

成果

“entergraph

#2 Click reponse body , , , never ,60 enter image description here

选修: 申请编号 Get Token

“entergraph

Filter (JSONPath or XPath)

$.access_token

“entergraph

成果 enter image description here

enter image description here

最后,将用户名单附在<代码>上。

enter image description here





相关问题
Microsoft partner API: can t authenticate

I ve created an app in Azure AD and followed this steps (Application and user access): https://github.com/MicrosoftDocs/partner-rest/blob/docs/partner-rest/develop/api-authentication.md From what I ...

Oath+Twitter IPhoneSDK

Does anyone know of a good example utilizing the twitter API and Oauth authentication for sending Twits iPhone SDK ........... I got stuck @ sending the twits .........I can make a successful login ...

Can t get user info from Facebook with OAuth 2.0

As soon as the user is logged in, I retrieve the user info using this code: [_facebook requestWithGraphPath:@"me" andDelegate:self]; It worked for the first few times, but it eventually returned an ...

热门标签