bps_sso_sdk library
BPS SSO SDK for Flutter applications
This SDK provides easy integration with BPS (Badan Pusat Statistik) SSO authentication system. It supports both internal and external BPS realms with OAuth2/OpenID Connect flow.
Classes
- BPSRealmConfig
- Configuration for a specific BPS realm
- BPSRedirectUri
- Typed redirect URI for BPS SSO OAuth2 flow
- BPSSsoAuthCallback
- Callback configuration for authentication events
- BPSSsoClient
- Main client for BPS SSO authentication
- BPSSsoConfig
- Configuration class for BPS SSO settings
- BPSSsoCustomTabsConfig
- UI configuration for Chrome Custom Tabs
- BPSSsoErrorConfig
- Error handling configuration for the authentication flow
- BPSSsoSdkInfo
- BPS SSO SDK information and metadata
- BPSSsoSecurityConfig
- Security configuration for the BPS SSO SDK
- BPSUser
- Represents a BPS user with authentication information
- CustomTabMenuItem
- Custom menu item for Chrome Custom Tabs overflow menu
Enums
- AuditLogLevel
- Audit logging levels for security compliance
- BPSCodeChallengeMethod
- PKCE code challenge method for BPS SSO
- BPSOAuthResponseType
- OAuth2 response types for BPS SSO authorization flow
- BPSOAuthScope
- OAuth2 scopes for BPS SSO
- BPSRealmType
- Types of BPS realms
- BPSSsoColorScheme
Extensions
- BPSUserExtensions on BPSUser
- Extension methods for BPSUser to provide additional convenience methods
Exceptions / Errors
- AuthenticationCancelledException
- Exception thrown when authentication is cancelled by user
- BPSSsoException
- Base exception for BPS SSO operations
- CertificateValidationException
- Exception thrown when certificate validation fails
- InvalidStateException
- Exception thrown when state parameter validation fails
- InvalidTokenException
- Exception thrown when access token is invalid or expired
- LogoutException
- Exception thrown when logout operation fails
- MissingUserDataException
- Exception thrown when required user data is missing
- NetworkException
- Exception thrown when network request fails
- SecurityException
- Exception thrown when security validation fails
- TokenExchangeException
- Exception thrown when token exchange fails
- UserInfoException
- Exception thrown when user info cannot be retrieved