Hi Sayed,

Did you ever find a resolution to this?  I've currently tried and seen the 
same...

Regards,

Stewart

On Wednesday, August 16, 2017 at 2:29:37 AM UTC-7, sayed amin Hosseini 
wrote:
>
> hi
> this is an issue that has been posted on github and i paste it here 
> (original link <https://github.com/apereo/cas/issues/2857>)
> please share your knowledge 
> thank u all
>
> Hello
> I'm trying to connect mattermost to cas. mattermost does support oauth 
> protocol for gitlab. I think it should work with CAS/OAuth too. It's 
> protocol! right? so I config mattermost with CAS/OAuth urls. It redirects 
> to login page properly. But when redirects back to mattermost it shows 
> error "Invalid state token".
> I checked packets by wireshark. the "state" parameter that mattermost 
> sends to cas is diffrerent than the "state" parameter that cas returns. 
> like this:
>
>
> https://mycas.com/cas/oauth2.0/authorize?response_type=code&client_id=c9f5a8547daba21a1ec0321aa4aacf41afdf19111b8d8c563ba6c2b20676446f&redirect_uri=http%3A%2F%2Fmymat.com%3A8065%2Fsignup%2Fgitlab%2Fcomplete&state=eyJhY3Rpb24iOiJsb2dpbiIsInRva2VuIjoiNzRtZHB5ZWl
>
>
> http://mymat.com:8065/signup/gitlab/complete?code=OC-2-4iNj4Seu9YocjAYwPcoVh4gvkhfNmgA3tpx&state=eyJhY3Rpb24iOiJsb2dpbiIsInRva2VuIjoiNzRtZHB5ZWlvYnd3cTM3dGdpYzZyNmJ5YWhxYmIxYnd5cm5jODlnajhnY29uOWtmOGNmOXNza3lmbWlkMWJoOSJ9
>
> As you see the second one is longer than the first. Is this a bug?
> Thanks
>
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/d5f81b34-7075-4a4b-9be3-2f0ce1f0c1d3%40apereo.org.

Reply via email to