question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update documentation around custom authentication

See original GitHub issue

Description

According to the Authentication Documentation I should be able to create my own credential object and pass that into whatever client I need. Unfortunately this doesn’t appear to be supported or at least it’s a round about way that isn’t documented for this library.

Expected

// Create the Google Credentials
var credential = GoogleCredential.FromAccessToken(Secrets.GoogleAccessToken);

// Create the Client with a specified credential
var client = ImageAnnotatorClient.Create(credential);

// Get authenticated response
var response = client.DetectLabels(image); 

Actual

Credentials must be a service account and the json file must be exported to as an environment variable. Which means that you cannot use an Access Token and this couldn’t be a resource that I locate in a custom manner.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jskeetcommented, Jun 11, 2020

Use new PublisherServiceApiClientBuilder { ... }.Build().

0reactions
jengstro2commented, Jun 11, 2020

In a relation to use with PublisherServiceApiClient.Create() ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update documentation for custom auth provider and ...
Can you update a small section of the auth documentation to make jwt integration easier? I recently added support for the jwt provider...
Read more >
Custom Authentication with Third-Party Services
This guide provides an example implementation of using third-party authentication APIs to authenticate with Nakama using Custom Authentication.
Read more >
Custom authentication - Sitefinity CMS Security
Add new or customize existing OpenID Connect authentication provider. By default Sitefinity CMS comes with preinstalled OIDC external authentication provider.
Read more >
Authenticate with Firebase in JavaScript Using a Custom ...
You can integrate Firebase Authentication with a custom authentication system by modifying your authentication server to produce custom signed tokens when a ...
Read more >
Customize authentication - Sitefinity CMS Development
This section contains · Add new OpenID Connect external authentication provider · Authentication sign out endpoint. Perform a sign out operation from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found