Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Generating tokens programmatically #2072

Open
rogerthatdev opened this issue Feb 23, 2023 · 2 comments
Open

Request: Generating tokens programmatically #2072

rogerthatdev opened this issue Feb 23, 2023 · 2 comments
Labels
samples Issues that are directly related to samples. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@rogerthatdev
Copy link

This is a request for a C# sample covering generating tokens programmatically as seen here: https://cloud.google.com/functions/docs/securing/authenticating#generating_tokens_programmatically

Based on sample feedback b/254628857

@rogerthatdev rogerthatdev added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Feb 23, 2023
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Feb 23, 2023
@amanda-tarafa amanda-tarafa self-assigned this Feb 23, 2023
@amanda-tarafa
Copy link
Member

amanda-tarafa commented Feb 23, 2023

We have a sample like that already:
https://github.com/GoogleCloudPlatform/dotnet-docs-samples/blob/main/identity-aware-proxy/IAPClient/IAPClient.cs

The sample is for connecting to an IAP client so, the target audience is an IAP client ID, but the code would be exactly the same to connect to anything else. Not sure if we should duplicate this code for Functions or maybe make some minor changes so that we can reuse the same sample in both places.

@jskeet what do you think?

@jskeet
Copy link
Member

jskeet commented Feb 23, 2023

I think it would probably make sense to have a Functions-specific one, if it's not too hard. The aspects of "the function URI is the audience" would be useful to include there.

@garethgeorge garethgeorge removed their assignment Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

6 participants
@jskeet @garethgeorge @amanda-tarafa @rogerthatdev and others