You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Configurable Cache Stores**: Support for custom cache stores for token storage
128
130
-**Comprehensive Scopes**: Support for all Bexio API and OpenID Connect scopes
129
131
132
+
#### OAuth Authentication Validation
133
+
134
+
The new `BexioOAuthAuthenticationValidateResolver` allows you to implement custom validation logic that runs after OAuth authentication but before the token is stored. This powerful feature provides:
135
+
136
+
-**API Access**: Full `BexioConnector` instance with authenticated access to Bexio API
137
+
-**Custom Validation**: Validate user permissions, company restrictions, or any business logic
138
+
-**Custom Redirects**: Return custom redirect responses with your own error handling
139
+
-**Exception Handling**: Gracefully handle API errors during validation
140
+
141
+
**Example Use Cases:**
142
+
- Validate user email against an allowlist
143
+
- Check company permissions via Bexio API calls
144
+
- Verify required OAuth scopes are present
145
+
- Implement custom business rules for authorization
146
+
147
+
**Default Behavior**: By default, all OAuth authentications are accepted (validation returns success)
0 commit comments