Skip to content

Commit

Permalink
Merge pull request #123 from TAMULib/sprint7-122-dont_expose_token
Browse files Browse the repository at this point in the history
Don't expose url and token via the public API
  • Loading branch information
kaladay committed Sep 22, 2020
2 parents 616d2a2 + 32e93e7 commit 9704689
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
Original file line number Diff line number Diff line change
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 9704689

Please sign in to comment.