Skip to content

Commit

Permalink
Fix problems when authentication provider is missing #128
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Aug 18, 2022
1 parent 249c37e commit ba9d719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/client.R
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ OpenEOClient <- R6Class(
else {
if (is.null(provider)) {
providers = list_oidc_providers()
provider = providers[[1]]
if (is_null(provider)) {
if (length(providers) <= 0) {
message("Either a provider needs to be provided, or a username and password for basic authentication.")
return(invisible(self))
}
provider = providers[[1]]
}
private$loginOIDC(provider = provider, config = config)
}
Expand Down

0 comments on commit ba9d719

Please sign in to comment.