php openid connect get token

I try to use jumbojett library for php and openid. I made connection but and get secret id and client, but when I want to get token I don't know how.

In small documentation is next example:

$oidc = new OpenIDConnectClient('https://id.provider.com',
                                'ClientIDHere',
                                'ClientSecretHere');
$oidc->providerConfigParam(array('token_endpoint'=>'https://id.provider.com/connect/token'));
$oidc->addScope('my_scope');

// this assumes success (to validate check if the access_token property is there and a valid JWT) :
$clientCredentialsToken = $oidc->requestClientCredentialsToken()->access_token;

But function requestClientCredentialsToken() doesn't exist in library. Does anyone know how to get token or to recommend some another php library where I can define scope, redirect uri, get client secret and id from open server and offcourse to get token.

Thanks in advance

dongyan6503
dongyan6503 您可能应该有两段代码-一段用于创建身份验证URL并发送重定向响应,另一段用于处理来自OAuth2服务器的重定向。您无法同步请求令牌。
3 年多之前 回复
douyiavxxh02727
douyiavxxh02727 当我使用$this->oidc->authenticate()时;我从auth服务获得登录页面,当我登录并重定向uri时,我有太多的重定向,我的应用程序死了。有谁知道这个问题的解决方案?
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐