News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Getting : "OAU-341" error
Tags: authentication
Feb 23, 2024 at 6:51am   •   1 replies  •  0 likes
Mark Dennis

Hi, I am trying to open a websocket to receive notifications. This was working till around 28/12/23 at which point I now get


StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:

{

Date: Fri, 23 Feb 2024 14:28:24 GMT

Connection: keep-alive

Vary: Origin

Vary: Access-Control-Request-Method

Vary: Access-Control-Request-Headers

RCRequestId: ccf3dd60-d257-11ee-96ba-005056bb5097

Pragma: no-cache

Cache-Control: no-store

AceRoutingKey: sjc11-c01-ace01-84c9f644f6-xdzm7_10.24.111.142

RoutingKey: SJC12P01

CF-Cache-Status: DYNAMIC

Server: cloudflare

CF-RAY: 85a027ad299b653b-LHR

Content-Type: application/json

Content-Length: 173

Content-Language: en

}

Content: {

"error" : "invalid_request",

"errors" : [ {

"errorCode" : "OAU-341",

"message" : "Assertion is expired"

} ],

"error_description" : "Assertion is expired"

}


Request:

Method: POST, RequestUri: 'https://platform.devtest.ringcentral.com/restapi/oauth/token', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers:

{

X-User-Agent: Unknown/0.0.1 RingCentral.Net/6.0.2

Authorization: Basic V1FkbUFHbFc5cHljd0s5UjdmTFBUYzo5Z2JxT05GdEVSd2IwS3FsVThLUmE1Wlp5cGgxSktIWTlmQUZ3V2RpY0E2Ng==

Content-Type: application/x-www-form-urlencoded

Content-Length: 780

}

Content: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJraWQiOiI4NzYyZjU5OGQwNTk0NGRiODZiZjVjYTk3ODA0NzYwOCIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJhdWQiOiJodHRwczovL3BsYXRmb3JtLmRldnRlc3QucmluZ2NlbnRyYWwuY29tL3Jlc3RhcGkvb2F1dGgvdG9rZW4iLCJzdWIiOiI4MTkwNjIwMDUiLCJpc3MiOiJodHRwczovL3BsYXRmb3JtLmRldnRlc3QucmluZ2NlbnRyYWwuY29tIiwiZXhwIjoxNzAzOTgwNzk5LCJpYXQiOjE3MDMwMDQwMDQsImp0aSI6Iks5U203YUhXU2wyalhpVGxlUFRjMkEifQ.dGB0xLOaDOGXds3qc5t4z8JnCfTGvFBVTGAMW6ehshtmipo0w3rwMUMSTbUQChiSbR01Q981TQr-4gKDxHGRS0ee4CxL85XAaYl4NxO-zoIsU-AbPPYt-IzI_usKaZh8cUKlq1TJNU9javmwETsBFe0bMve5rpMofyKMw-HIf122z5MpkXmpDgK_5Yk8TLleQzZALpcHR4-HA3zB8YtQ-YNXNtLiDVaWU3aOzR0-t_zLSDSC06vW0PhrBl78lDWuDXz7oAOzz-x-2-dGI9YIVy1AhlaRvU8DjKkNnhDGEN69wIueZyw-tuS41kJ2WCqjH0mfW0hsEprNCJ5Iq8O_gQ



when calling

await rc.Authorize("ey....

Can you assist as I have asked previously and had no response. I am using the latest SDKs for RingCentral v 6.1.2 and WebSocket v2.3.3


Thanks


Maurice

1 Answer
answered on Feb 23, 2024 at 10:36am  

I think it is because your personal JWT token has expired. Please go to https://developers.ringcentral.com/console/my-credentials to confirm it.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us