hi,
I write a  OpenID Connect clients follow 
https://github.com/cqcmdwym/passport-oidc-example  
https://bugzilla.redhat.com/show_bug.cgi?id=1416491
I fixed  
passport.use('oidc', new OidcStrategy({
  issuer: 'https://10.110.128.120:443/ovirt-engine/sso/openid',
  authorizationURL: 
'https://10.110.128.120:443/ovirt-engine/sso/openid/authorize',
  tokenURL: 'https://10.110.128.120:443/ovirt-engine/sso/openid/token',
  userInfoURL: 'https://10.110.128.120:443/ovirt-engine/sso/openid/userinfo',
  clientID: 'openid-test',
  clientSecret: '34bACHKj8VN1WOImGUKphzE4fPk3WPvAaKlQFsrQ79g',
  callbackURL: 'http://10.110.128.195:3000/authorization-code/callback',
  scope: 'openid ovirt-app-portal ovirt-app-admin ovirt-app-api 
ovirt-ext=token:password-access ovirt-ext=auth:sequence-priority 
ovirt-ext=token:login-on-behalf ovirt-ext=token-info:authz-search 
ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 
ovirt-ext=revoke:revoke-all'

error:

id token not issued by correct OpenID provider - expected: 
https://10.110.128.120:443/ovirt-engine/sso/openid | from: 
https://10.110.128.120:443
Error: id token not issued by correct OpenID provider - expected: 
https://10.110.128.120:443/ovirt-engine/sso/openid | from: 
https://10.110.128.120:443
    at 
/home/duhy/workSpace/nodejs/duhy/passport-oidc-example/node_modules/passport-openidconnect/lib/strategy.js:113:62
    at 
/home/duhy/workSpace/nodejs/duhy/passport-oidc-example/node_modules/oauth/lib/oauth2.js:209:7
    at passBackControl 
(/home/duhy/workSpace/nodejs/duhy/passport-oidc-example/node_modules/oauth/lib/oauth2.js:134:9)
    at IncomingMessage.<anonymous> 
(/home/duhy/workSpace/nodejs/duhy/passport-oidc-example/node_modules/oauth/lib/oauth2.js:157:7)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
 


 


Regards
Hongyu Du
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/FCX3MOY4WZR4NXVGJZVMXFMW7CAZPPP2/

Reply via email to