AzureAD / microsoft-authentication-library-for-go

The MSAL library for Go is part of the Microsoft identity platform for developers (formerly named Azure AD) v2.0. It enables you to acquire security tokens to call protected APIs. It uses industry standard OAuth2 and OpenID Connect.
MIT License
218 stars 87 forks source link

Add option to set success and error pages for when calling AcquireInt… #490

Open wayneforrest opened 3 weeks ago

wayneforrest commented 3 weeks ago

Add option to set success and error web pages for when using AcquireTokenInteractive

For example :

 var successPage = []byte(`<!DOCTYPE html>
     <html>
          <body>A Success Page</body>
     </html>`)

 var errorPage = []byte(`<!DOCTYPE html>
     <html>
          <body>A Error Page</body>
     </html>`)

result, err = client.AcquireTokenInteractive(context.TODO(), scopes,
    public.WithSystemBrowserOptions(successPage, errorPage),
)
if err != nil {
    log.Fatalf("Failed to acquire token interactively: %v", err)
}
sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

wayneforrest commented 3 weeks ago

@microsoft-github-policy-service agree

On 12 Jun 2024, at 10:19 PM, microsoft-github-policy-service[bot] @.***> wrote:

@microsoft-github-policy-service agree