ydb-platform / ydb-go-sdk

Pure Go native and database/sql driver for YDB
https://ydb.tech
Apache License 2.0
138 stars 73 forks source link

Load OAuth 2.0 token exchange credentials provider from config file #1321

Closed UgnineSirdis closed 3 months ago

UgnineSirdis commented 3 months ago

Load OAuth 2.0 token exchange credentials provider from config file Implement RFC part in Go SDK: https://github.com/ydb-platform/ydb-rfc/blob/main/cli_oauth2_token_exchange.md

Please check the type of change your PR introduces:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

-

-

Other information

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 89.13858% with 29 lines in your changes missing coverage. Please review.

Project coverage is 41.67%. Comparing base (c2b8607) to head (49dd85e).

Files Patch % Lines
credentials/options.go 0.00% 16 Missing :warning:
options.go 0.00% 6 Missing :warning:
credentials/credentials.go 0.00% 4 Missing :warning:
internal/credentials/oauth2.go 98.75% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1321 +/- ## ========================================== + Coverage 41.33% 41.67% +0.33% ========================================== Files 321 321 Lines 33793 34050 +257 ========================================== + Hits 13970 14190 +220 - Misses 19353 19390 +37 Partials 470 470 ``` | [Flag](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | Coverage Δ | | |---|---|---| | [go-1.20.x](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `43.95% <96.35%> (+0.42%)` | :arrow_up: | | [go-1.21.x](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `43.98% <96.35%> (+0.39%)` | :arrow_up: | | [go-1.22.x](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `41.62% <89.13%> (+0.31%)` | :arrow_up: | | [macOS](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `41.19% <87.03%> (+0.31%)` | :arrow_up: | | [ubuntu](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `41.16% <87.03%> (+0.32%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `41.67% <89.13%> (+0.33%)` | :arrow_up: | | [windows](https://app.codecov.io/gh/ydb-platform/ydb-go-sdk/pull/1321/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform) | `41.64% <89.13%> (+0.31%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ydb-platform#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.