就本地邮递员API测试而言,SAML与opeid-connect有何不同? [英] How SAML is different then opeid-connect in terms of postman API testing locally?

查看:90
本文介绍了就本地邮递员API测试而言,SAML与opeid-connect有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地的Keycloak仪表板中创建了Realm DB,客户端n,并且也可以在邮递员中进行测试.

I created Realm DB, client n all in Keycloak dashboard locally and able to test in postman as well.

但是现在的问题是,以前我使用的是opeid-connect协议,现在我的要求是使用小型协议进行连接.

But now the problem is, previously I was doing with opeid-connect protocol, and now my requirement is to connect with small protocol.

当我在邮递员工作时,我得到的是:

When I'm doing in postman, I'm getting this:

{
    "error": "RESTEASY003210: Could not find resource for full path: http://localhost:8080/auth/realms/Lifetrenz/protocol/saml/token"
}

与以前的配置相比,我在Keycloak中所做的更改是什么? 以前,我将协议选择为openid-connect,而现在我更改为saml.而已. Ans打开后,我正在获取客户机密,但是小的情况下,我并没有得到.

What I changed in Keycloak compare to previous configuration? Previously I select protocol as openid-connect, and now I changed to saml. That's it. Ans with opened I was getting client secret, but with small I'm not getting that.

请参阅邮递员secreenshot:

See postman secreenshot:

推荐答案

OpenID Connect使用REST API和JWT令牌.

OpenID Connect uses REST API and a JWT token.

SAML使用浏览器重定向和XML令牌.

SAML uses browser redirects and an XML token.

参数是完全不同的,例如client_ID和grant_type在SAML中没有意义.

The parameters are completely different e.g. client_ID and grant_type have no meaning in SAML.

所以您需要一个新的Postman配置.

So you need a new Postman configuration.

您可以在Postman中使用SAML,例如,但您首先必须设置Postman才能通过SSO允许此操作.

You can use SAML in Postman e.g this but you first have to set up Postman to allow this via SSO.

这篇关于就本地邮递员API测试而言,SAML与opeid-connect有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆