authlete / authlete-go Goto Github PK
View Code? Open in Web Editor NEWAuthlete Library for Go
Home Page: https://www.authlete.com/
License: Apache License 2.0
Authlete Library for Go
Home Page: https://www.authlete.com/
License: Apache License 2.0
In Go, we use context.Context to propagate cancellations.
For instance, in the calling chain below, if the communication is cut off from the OAuth client, the call to the Authlete API via the OAuth server will be cancelled.
OAuth client => OAuth server => Authlete API
However, since there are users of the existing methods, maintaining compatibility is necessary.
To address this, I propose to add it to the interface in the following manner:
https://github.com/authlete/authlete-go/blob/master/api/authlete_api.go#L21-L25
type AuthleteApi interface {
Settings() *Settings
Authorization(request *dto.AuthorizationRequest) (*dto.AuthorizationResponse, *AuthleteError)
AuthorizationWithContext(ctx context.Context, request *dto.AuthorizationRequest) (*dto.AuthorizationResponse, *AuthleteError)
AuthorizationFail(request *dto.AuthorizationFailRequest) (*dto.AuthorizationFailResponse, *AuthleteError)
AuthorizationFailWithContext(ctx context.Context, request *dto.AuthorizationFailRequest) (*dto.AuthorizationFailResponse, *AuthleteError)
...
(translation by gpt-4)
Should we consider switching to using openapi-for-go in the future?
Not only does it seem like its main branch is being actively maintained, but there also exists v3 branch.
I am asking this question primarily because it appears that "authlete-go" is not being maintained as regularly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.