Skip to content

Commit

Permalink
Revert "feat: Support for bearer token authentication and no authenti…
Browse files Browse the repository at this point in the history
…cation and PUT method in REST calls (#803)"""

This reverts commit 13069a8.
  • Loading branch information
AsabuHere committed Jun 26, 2024
1 parent 13069a8 commit 0b771a9
Show file tree
Hide file tree
Showing 35 changed files with 331 additions and 2,372 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ public class Example {
}
}
```
### Initialize the client when endpoints does not use basic authentication
The above example shows how to initialize the client in case the endpoints use basic authentication. When the endpoint does not require any authentication, use TwilioNoAuth client instead.
There are endpoints like Organization domain which uses bearer token authentication. Custom Clients needs to be used in such cases and initialize them with the values required for access token generation.

To bypass the initialization step you can also use a custom token manager implementation. Token manager class should implement the Token interface and call a token generation endpoint of your choice.
Detailed examples [here](https://github.com/twilio/twilio-java/tree/main/examples)

### Environment Variables

Expand Down
26 changes: 0 additions & 26 deletions examples/BearerTokenAuthentication.md

This file was deleted.

11 changes: 0 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,6 @@
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>4.4.0</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/twilio/Domains.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public enum Domains {
NUMBERS("numbers"),
OAUTH("oauth"),
PREVIEW("preview"),
PREVIEWIAM("preview-iam"),
PRICING("pricing"),
PROXY("proxy"),
ROUTES("routes"),
Expand Down
48 changes: 0 additions & 48 deletions src/main/java/com/twilio/TwilioNoAuth.java

This file was deleted.

106 changes: 0 additions & 106 deletions src/main/java/com/twilio/TwilioOrgsTokenAuth.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/java/com/twilio/annotations/Beta.java

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/com/twilio/annotations/Preview.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/java/com/twilio/base/bearertoken/Creator.java

This file was deleted.

51 changes: 0 additions & 51 deletions src/main/java/com/twilio/base/bearertoken/Deleter.java

This file was deleted.

Loading

0 comments on commit 0b771a9

Please sign in to comment.