RWS Community
RWS Community
  • Site

Trados Go

Trados Studio

Trados Ignite

Trados Team

Trados Accelerate

Trados Enterprise

Trados GroupShare

Passolo

MultiTerm

RWS AppStore

Connectors

Beta Groups

Managed Translation

MultiTrans

TMS

Trados Enterprise

WorldServer

Language Weaver

Language Weaver Edge

Language Weaver Connectors

Language Weaver in Trados Studio

 

 

Content Champions

Tridion Docs

Tridion Sites

Contenta

LiveContent

XPP

Trados Go Ideas

Trados Studio Ideas

Trados Ignite Ideas

Trados GroupShare Ideas

Trados Team Ideas

Trados Team Terminology Ideas

Trados Enterprise & Accelerate Ideas

MultiTerm Ideas

Passolo Ideas

RWS Appstore Ideas

Tridion Docs Ideas

Tridion Sites Ideas

Language Weaver Ideas

Language Weaver Edge Ideas

Managed Translation - Enterprise Ideas

TMS Ideas

WorldServer Ideas

Trados Enterprise Ideas

XPP Ideas

GroupShare Developers

Language Cloud Developers

MultiTerm Developers

Passolo Developers

Trados Studio Developers

Managed Translation Developers

TMS Developers

WorldServer Developers

Tridion Docs Developers

XPP Developers

Language Combinations by Language Services

RWS Training & Certification

Style Guides

Content Management Partners

LDE Korean Vendor Support

RWS Campus

Trados Approved Trainers

Nordic Tridion Docs User Group

Tridion West Coast User Group

Community Ops

RWS Community Internal Group

AURORA

Internal Trados Ideas

Linguistic Validation

Mercury

QA Tools

RI Operational Excellence

Trados Inspired

XPP Cloud

Recognition & Reward System

RWS Community Platform Related Questions

Community Solutions Hub (Trados)

About RWS

Events

RWS Services: Train AI & others

RWS Training & Certification

To RWS Support

  • Search
  • Translate

    Detecting language please wait for.......


    Powered by
  • User
  • Site
  • Search
  • User
  • Products
  • Language Weaver Solutions
  • Language Weaver
  • More
  • Cancel
Language Weaver
  • Products
  • Language Weaver Solutions
  • Language Weaver
  • More
  • Cancel

Language Weaver > Wiki

Refresh authentication token
  • Home
  • Blogs
  • Leaderboard
  • Forum
  • Videos
  • Wiki
  • Docs
  • More
  • Cancel
  • New
Show Translation Options

Detecting language please wait for.......


Powered by
Language Weaver requires membership for participation - click to join
  • -Wiki
    • Dictionaries and Brands overview
    • -REST API
      • Refresh authentication token
      • Synchronous translation
      • Optimize integration for speed
  • Connect with Language Weaver Resources
  • Connecting Power BI to Language Weaver
  • How to report MT linguistic issues to RWS Support
  • How to use translation "Labels" in Language Weaver
  • How to use User Groups in Language Weaver
  • Language Weaver introduces Multilingual Content Insights
  • Real-time adaptation available in Language Weaver Translation UI
  • +End of Support Notices

You are currently reviewing an older revision of this page.

  • History View current version

Refresh authentication token

Each call to the API must have an authorization token, by which the API service will determine if the request is authorized.  There are two methods to retrieve an authentication token:

  1. Token Request with API credentials, which is a Client ID/Secret pair
    1. The token created with this authentication flow is cached by SDL MT Cloud for 24 hours.  Therefore, the same token will be provided within the 24 hours of its validity period.  Programmers can decide to locally store the token value and use it in various requests to the REST API service and only make a new authentication call when the token expires, or make the authentication call each time and not program any local codes to manage the token expiration.  In this scenario where you are unable to store the token and need to make another token request within 24 hours, you will notice that the service reissue the same token and the response body will give you an updated time of when it will be expired. 
  2. Token Request with user credentials, which is a Username/Password pair
    1. Unlike the other authentication flow, tokens created with user credentials are not cached and therefore will be a new one with each request.

Tokens are valid for 24 hours.

Our recommendation for machine to machine workflows where individual users are not involved is to use authentication via API Credentials.

For both authentication flows, the best implementation would be to generate a token once and store it, then only request a new one when the token expires. This way you will get the best performance possible, as your application will not make an extra request for every translation call (This extra request will add up after a while if the application has high translation needs).

  • Our Terms of Use
  • Copyright
  • Privacy
  • Security
  • Anti-slavery Statement
  • Cookie Notice
  • YouTube