-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRequestURL's.txt
More file actions
84 lines (68 loc) · 3.39 KB
/
RequestURL's.txt
File metadata and controls
84 lines (68 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
https://g00glen00b.be/spring-angular-sockjs/
http://beyondscheme.com/2016/angular2-discussion-portal
https://examples.javacodegeeks.com/core-java/real-time-applications-angularjs-java-part-3/
http://localhost:8080/AngularSpringProject/account/login.form#/login
http://localhost:8080/AngularSpringProject/account/login.form#/forgotPassword
http://localhost:8080/AngularSpringProject/account/login.form#/register
GET... /login
URL ***** /css/angularLogin.css
URL ***** /css/confirmPassword.css
URL ***** /angular/controllers/loginModuleControler.js
URL ***** /angular/filters/wordCount.js
URL ***** /angular/directives/confirmPassword.js
URL ***** /angular/directives/passwordStrength.js
URL ***** /account/userLogin
POST... inputFromData
SB : {"username":"yashwanth.merugu@gmail.com","password":"Yash@123"}
http://localhost:8080/AngularSpringProject/account/loginSucess
JavaScript:
JavaScript is executed on the client side (browser),
while the session data is stored on the server.
by this you can't modify the servers session data with JavaScript.
Sessions may contain sensitive data.
using JS you can easily find many examples how to modify cookies.
Browser Session local to client:
sessionStorage.setItem("SessionName","SessionData");
sessionStorage.SessionName = "SessionData";
sessionStorage.getItem("SessionName");
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo-1.5.xsd
">
<!-- mongodb configuration -->
<!-- <bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
<property name="host" value="${mongoDBHost}" />
<property name="port" value="${mongoDBPort}"></property>
</bean> -->
<mongo:mongo host="${mongoDBHost}" port="${mongoDBPort}" id="mongo" />
<bean id="mongoCredientials" class="org.springframework.data.authentication.UserCredentials">
<constructor-arg name="username" value="${mongoDBUserName}"/>
<constructor-arg name="password" value="${mongoDBPassword}"/>
</bean>
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg name="mongo" ref="mongo" />
<constructor-arg name="databaseName" value="${mongoDBName}" />
<constructor-arg name="userCredentials" ref="mongoCredientials"/>
</bean>
<mongo:db-factory id="mongoDbFactory"
host="${mongoDBHost}"
port="${mongoDBPort}"
dbname="${mongoDBName}"
username="${mongoDBUserName}"
password="${mongoDBPassword}"
/>
<mongo:mapping-converter id="converter" db-factory-ref="mongoDbFactory" />
<bean id="gridTemplateImages" class="org.springframework.data.mongodb.gridfs.GridFsTemplate">
<constructor-arg name="dbFactory" ref="mongoDbFactory" />
<constructor-arg name="converter" ref="converter" />
<constructor-arg name="bucket" value="${mongoDB_BucketName}"/>
</bean>
<bean id="mongoDao" class="com.github.dao.MongoFilesDAO_Impl" scope="singleton">
<property name="mongoTemplate" ref="mongoTemplate"/>
<property name="gridFsTemplate" ref="gridTemplateImages"/>
</bean>