# Google (default issuer)
auth_config(
client_id = "123456789.apps.googleusercontent.com",
allowed_domains = "mycompany.com"
)
# Microsoft Entra
auth_config(
client_id = "abcdef-1234-5678",
issuer = "https://login.microsoftonline.com/common/v2.0",
allowed_emails = "[email protected]"
)
# Custom validator
auth_config(
client_id = "0oaXXXXXXXX",
issuer = "https://dev-123456.okta.com/oauth2/default",
custom_validator = function(claims) "editors" %in% claims$groups
)
Run the code above in your browser using DataLab