We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33eb63 commit 96d3460Copy full SHA for 96d3460
README.md
@@ -23,7 +23,7 @@ credentials = Calendav::Credentials::Standard.new(
23
host: "https://www.example.com/caldav",
24
username: "example",
25
password: "secret",
26
- authentication: :basic_auth # or :bearer_token
+ authentication: :basic_auth # :bearer_token and :oauth also supported
27
)
28
```
29
lib/calendav/endpoint.rb
@@ -85,6 +85,8 @@ def authenticated
85
HTTP.basic_auth(user: credentials.username, pass: credentials.password)
86
when :bearer_token
87
HTTP.auth("Bearer #{credentials.password}")
88
+ when :oauth
89
+ HTTP.auth("OAuth #{credentials.password}")
90
else
91
raise "Unexpected authentication approach: " \
92
"#{credentials.authentication}"
0 commit comments