Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FWoAuthURL

FWoAuthURL():New(cRequest,cAuthorize,cAccess)

Configures a documented OAuth-client stage.

FWoAuthURLAdvPL
01 · OVERVIEW

Overview

Groups request-token, authorization and access-token URLs. It holds no credentials and construction neither authenticates users nor sends requests. Endpoints must match provider/environment, with registered callback when required. The example uses example.invalid as a teaching domain rather than a real service. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWoAuthURL():New(cRequest,cAuthorize,cAccess)

Parameters

cRequest
CharacterRequired

Token request URL.

cAuthorize
CharacterRequired

Authorization URL.

cAccess
CharacterRequired

Access-token URL.

Methods

NewReceives the three required URLs.FWoAuthURL():New(cRequest,cAuthorize,cAccess)
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed443()
    // Configure fictional URLs only; no request.
    Local oUrls := FWoAuthURL():New("https://example.invalid/request","https://example.invalid/authorize","https://example.invalid/access")
    FreeObj(oUrls)
Return Nil
Expected result

Prepared configuration without authentication or external communication. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Keep secrets out of source and logs; verify endpoints, signing, permissions and provider behavior before use.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWoAuthURL. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha