pub struct AuthConfig {
pub auth_base: String,
pub api_base: String,
pub client_id: String,
pub client_secret: String,
pub pkce_client_id: String,
pub pkce_client_secret: String,
}Expand description
Endpoints and client credentials, injected so tests use a mock server.
Fields§
§auth_base: StringBase of the OAuth2 endpoints (/device_authorization, /token).
api_base: StringBase of the API that Authenticator::get_json paths resolve against.
client_id: StringThe device-flow (login) client: CLIENT_ID in production.
client_secret: String§pkce_client_id: StringThe client refreshes use: PKCE_CLIENT_ID in production (AC19).
pkce_client_secret: StringImplementations§
Source§impl AuthConfig
impl AuthConfig
Sourcepub fn production() -> Self
pub fn production() -> Self
Tidal’s production endpoints and the official app’s credentials.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
impl Eq for AuthConfig
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more