zakuciael / gf-auth Goto Github PK
View Code? Open in Web Editor NEWA client SDK for Gameforge Auth API
License: MIT License
A client SDK for Gameforge Auth API
License: MIT License
Forbidden
- 403 status codeUnauthorized
- 401 status codeid
- Stringdisplay_name
- Stringgame_id
- Stringgame_account_id
- StringplatformGameAccountId
gsid
- GameSessionIdgame_id
- Stringblackbox
- Blackboxemail
- Stringpassword
- Stringlocale
- Localetoken
- StringLet's move the fingerprint
and blackbox
modules from the gf-auth
crate to the gf-auth-model
crate, this way we can use those custom types inside other models and provide a shared place where their logic is stored.
Forbidden
- 403 status codeUnauthorized
- 401 status codetoken
- StringCreate a sub-module for fingerprint
to define utility functions.
Create a custom FingerprintVector
struct that allows easier updating and type safety.
We can split reqwest
and ureq
modules into sub-modules that for example implement From
traits for HttpError
, this can gradually improve code readability.
Serialize
trait to encrypt the blackbox.Identity
is a helper struct composed of:
It is meant to be loaded by the IdentityManager
and provide the necessary configuration values needed for authentication (apart from the actual account details).
IdentityManager
is a helper struct providing methods necessary during authentication.
Implement logic for sending authentication requests to the /api/v1/auth/sessions
endpoint.
To implement this endpoint we need a method to "generate" a blackbox (#5) as it is required as input in the request, we also need a captcha solver (#20) to solve Gameforge's captchas if needed.
Implement logic to handle the /api/v1/auth/iovation
endpoint.
To send this request we need a method to "generate" a blackbox (#5) and authenticate to the Gameforge API (#19). We also need to send an OPTIONS
request before the actual one, since Gameforge will deny any request that doesn't do that.
Alias: Vec<GameAccount>
GameSessionId
is a wrapper around gsid
and provides type safety and ease of usage.
Captcha
- 409 status codeUnauthorized
- 403 status codeA 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.