Skip to content

Commit

Permalink
Don't expose url and token via the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed Sep 21, 2020
1 parent 5dbc87e commit 32e93e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/edu/tamu/app/model/ManagementService.java
Expand Up @@ -5,6 +5,7 @@
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonView;
Expand All @@ -28,10 +29,12 @@ public abstract class ManagementService extends ValidatingBaseEntity {
protected ServiceType type;

@Column
@JsonIgnore
@JsonView(ApiView.Partial.class)
protected String url;

@Column
@JsonIgnore
@JsonView(ApiView.Partial.class)
@Convert(converter = CryptoConverter.class)
protected String token;
Expand Down

0 comments on commit 32e93e7

Please sign in to comment.