From 7cc98d6adc48258d88a8b4d063dc97fca110a197 Mon Sep 17 00:00:00 2001 From: fares Date: Wed, 31 Mar 2021 19:15:53 +0100 Subject: [PATCH] the problem has been solved --- .../UnsplashWebServiceLoginModel.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/example/p5i/onlinegallery/authenticationModule/authorizationData/UnsplashWebServiceLoginModel.java b/app/src/main/java/com/example/p5i/onlinegallery/authenticationModule/authorizationData/UnsplashWebServiceLoginModel.java index 90647b0..992b988 100644 --- a/app/src/main/java/com/example/p5i/onlinegallery/authenticationModule/authorizationData/UnsplashWebServiceLoginModel.java +++ b/app/src/main/java/com/example/p5i/onlinegallery/authenticationModule/authorizationData/UnsplashWebServiceLoginModel.java @@ -28,10 +28,14 @@ public class UnsplashWebServiceLoginModel private String clientSecret="TVnudFDwuYEJuL0GvB8qcCAR9Vqsr14GcMYVwa8B0OM"; private String redirect_uri="curta://callback"; - private String url="https://unsplash.com/oauth/authorize?client_id="+clientID+"&redirect_uri="+redirect_uri + - "&response_type=code&scope=public read_user write_user read_photos write_photos write_likes write_followers read_collections write_collections"; - /*private String url="https://unsplash.com/oauth/authorize?client_id=yrnk1pXnbDXXE4MYt_vk0sB5fMWJkVMvokLv16zkG7w&redirect_uri=curta://callback&response_type=code" + - "&scope=public read_user write_user read_photos write_photos write_likes write_followers read_collections write_collections";*/ + /*private String url="https://unsplash.com/oauth/authorize?client_id="+clientID+"&redirect_uri="+redirect_uri + + "&response_type=code&scope=public read_user write_user read_photos write_photos write_likes write_followers read_collections write_collections";*/ + + private String url="https://unsplash.com/oauth/authorize?" + + "client_id=U4e3aiPSmYENZTwqMYUMv1P2XftujdL6byd9e_jM_UI&" + + "redirect_uri=curta://callback&" + + "response_type=code" + + "&scope=public read_user write_user read_photos write_photos write_likes write_followers read_collections write_collections"; public UnsplashWebServiceLoginModel(Context context) { mLoginStateModel=new LoginStateModel(context);