Skip to content

Commit

Permalink
feat: promote IdToken and JWT features (#538)
Browse files Browse the repository at this point in the history
These features have been available for months and have not received bug reports.
  • Loading branch information
chingor13 committed Jan 26, 2021
1 parent 9a11c50 commit b514fe0
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 17 deletions.
Expand Up @@ -42,7 +42,6 @@
import com.google.api.client.util.GenericData;
import com.google.auth.ServiceAccountSigner;
import com.google.auth.http.HttpTransportFactory;
import com.google.common.annotations.Beta;
import com.google.common.base.Joiner;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -212,7 +211,6 @@ public AccessToken refreshAccessToken() throws IOException {
* @throws IOException if the attempt to get an IdToken failed
* @return IdToken object which includes the raw id_token, JsonWebSignature
*/
@Beta
@Override
public IdToken idTokenWithAudience(String targetAudience, List<IdTokenProvider.Option> options)
throws IOException {
Expand Down
2 changes: 0 additions & 2 deletions oauth2_http/java/com/google/auth/oauth2/IdToken.java
Expand Up @@ -33,7 +33,6 @@

import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.webtoken.JsonWebSignature;
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import java.io.IOException;
import java.io.ObjectInputStream;
Expand All @@ -43,7 +42,6 @@
import java.util.Objects;

/** Represents a temporary IdToken and its JsonWebSignature object */
@Beta
public class IdToken extends AccessToken implements Serializable {

private static final long serialVersionUID = -8514239465808977353L;
Expand Down
Expand Up @@ -32,7 +32,6 @@
package com.google.auth.oauth2;

import com.google.api.client.util.Preconditions;
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import java.io.IOException;
import java.util.List;
Expand Down Expand Up @@ -101,7 +100,6 @@
* System.out.println(tokenCredential.getIdToken().getJsonWebSignature().getPayload().getExpirationTimeSeconds());
* </pre>
*/
@Beta
public class IdTokenCredentials extends OAuth2Credentials {

private static final long serialVersionUID = -2133257318957588431L;
Expand Down
2 changes: 0 additions & 2 deletions oauth2_http/java/com/google/auth/oauth2/IdTokenProvider.java
Expand Up @@ -31,12 +31,10 @@

package com.google.auth.oauth2;

import com.google.common.annotations.Beta;
import java.io.IOException;
import java.util.List;

/** Interface for an Google OIDC token provider. This type represents a google issued OIDC token. */
@Beta
public interface IdTokenProvider {

/**
Expand Down
Expand Up @@ -45,7 +45,6 @@
import com.google.auth.ServiceAccountSigner;
import com.google.auth.http.HttpCredentialsAdapter;
import com.google.auth.http.HttpTransportFactory;
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableMap;
import java.io.IOException;
Expand Down Expand Up @@ -303,7 +302,6 @@ public AccessToken refreshAccessToken() throws IOException {
* @return IdToken object which includes the raw id_token, expiration, and audience
* @throws IOException if the attempt to get an ID token failed
*/
@Beta
@Override
public IdToken idTokenWithAudience(String targetAudience, List<IdTokenProvider.Option> options)
throws IOException {
Expand Down
3 changes: 0 additions & 3 deletions oauth2_http/java/com/google/auth/oauth2/JwtProvider.java
Expand Up @@ -31,10 +31,7 @@

package com.google.auth.oauth2;

import com.google.common.annotations.Beta;

/** Interface for creating custom JWT tokens */
@Beta
public interface JwtProvider {

/**
Expand Down
Expand Up @@ -55,7 +55,6 @@
import com.google.api.client.util.SecurityUtils;
import com.google.auth.ServiceAccountSigner;
import com.google.auth.http.HttpTransportFactory;
import com.google.common.annotations.Beta;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -476,7 +475,6 @@ public boolean isRequired(HttpResponse response) {
* @throws IOException if the attempt to get an IdToken failed
* @return IdToken object which includes the raw id_token, expiration and audience
*/
@Beta
@Override
public IdToken idTokenWithAudience(String targetAudience, List<Option> options)
throws IOException {
Expand Down
2 changes: 0 additions & 2 deletions oauth2_http/java/com/google/auth/oauth2/TokenVerifier.java
Expand Up @@ -41,7 +41,6 @@
import com.google.api.client.util.Clock;
import com.google.api.client.util.Key;
import com.google.auth.http.HttpTransportFactory;
import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
Expand Down Expand Up @@ -79,7 +78,6 @@
* @author Jeff Ching
* @since 0.21.0
*/
@Beta
public class TokenVerifier {
private static final String IAP_CERT_URL = "https://www.gstatic.com/iap/verify/public_key-jwk";
private static final String FEDERATED_SIGNON_CERT_URL =
Expand Down

0 comments on commit b514fe0

Please sign in to comment.