Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
5aa405c6
Commit
5aa405c6
authored
1 year ago
by
Radheshhathwar
Browse files
Options
Download
Patches
Plain Diff
Changes related to auth token
parent
310085ba
uri_access_check
Response_fixes
access_based_check
auxillary_apis
bug_fix_question_paper_upload
development
fee_changes
fee_workflow
github/fork/ruksana2808/filter_bug_examCycle
instituteApis_shishir
1 merge request
!12
Email notification and CCTV admin verification code changes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/tarento/upsmf/examsAndAdmissions/RequestInterceptor.java
+3
-4
.../tarento/upsmf/examsAndAdmissions/RequestInterceptor.java
src/main/resources/application.properties
+1
-1
src/main/resources/application.properties
with
4 additions
and
5 deletions
+4
-5
src/main/java/com/tarento/upsmf/examsAndAdmissions/RequestInterceptor.java
+
3
−
4
View file @
5aa405c6
...
...
@@ -31,16 +31,15 @@ public class RequestInterceptor extends BaseController implements HandlerInterce
// authentication
// System.out.println("request_token :"+ authToken);
//// String userId = verifyRequestData(authToken);
String
userId
=
"authToken"
;
System
.
out
.
println
(
"userId :"
+
userId
);
if
(
userId
.
equalsIgnoreCase
(
Constants
.
Parameters
.
UNAUTHORIZED
))
{
System
.
out
.
println
(
"userId :"
+
authToken
);
if
(
authToken
.
equalsIgnoreCase
(
Constants
.
Parameters
.
UNAUTHORIZED
))
{
response
.
setStatus
(
HttpServletResponse
.
SC_UNAUTHORIZED
);
response
.
getWriter
().
write
(
handleResponse
(
false
,
ResponseCode
.
UNAUTHORIZED
));
response
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
return
Boolean
.
FALSE
;
}
request
.
setAttribute
(
Constants
.
Parameters
.
USER_ID
,
userId
);
request
.
setAttribute
(
Constants
.
Parameters
.
USER_ID
,
authToken
);
return
Boolean
.
TRUE
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
1
−
1
View file @
5aa405c6
...
...
@@ -6,7 +6,7 @@ spring.datasource.password=postgres
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.format_sql
=
true
spring.jpa.show-sql
=
false
spring.jpa.hibernate.ddl-auto
=
updat
e
spring.jpa.hibernate.ddl-auto
=
non
e
#Storage Service properties
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets