Skip to content

Commit

Permalink
feat: Repository를 통해 특정 벤더의 Provider 객체를 가져올 수 있도록 findByProviderName…
Browse files Browse the repository at this point in the history
…() 메서드 생성 (#35)
  • Loading branch information
mybloom committed Jun 7, 2022
1 parent 09eb50d commit e23f23f
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.team4.airbnb.auth.config;

import java.util.Map;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class MemoryProviderRepository {

private final Map<String, OauthProvider> providers;

public OauthProvider findByProviderName(String name) {
OauthProvider oauthProvider = providers.get(name);
return oauthProvider;
}
}

0 comments on commit e23f23f

Please sign in to comment.