[Geoserver-users] Login into geoserver from java

hi,

I want to log in geroserver from a java web application using post request.
How I can do this?

Exists any url like
"http//:host:port/geoserver/login?username=usr&password=pass"?

Thanks in advance.

Cheers, Samuel

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Login-into-geoserver-from-java-tp5133178.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

We have done this using basic authorization with the Authorization header and bearer.

//pseudo code
Headers.add("Authorization", "Bearer myuser:mypass");

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.

-----Original Message-----
From: mlg27 [mailto:sam_parada@anonymised.com]
Sent: Friday, April 04, 2014 9:42 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Login into geoserver from java

hi,

I want to log in geroserver from a java web application using post request.
How I can do this?

Exists any url like
"http//:host:port/geoserver/login?username=usr&password=pass"?

Thanks in advance.

Cheers, Samuel

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Login-into-geoserver-from-java-tp5133178.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,
thanks for your answer but I'm a novice and I don't now what it is. I've
already "google" what it is but without success.

I'm sorry.

Cheers,
Samuel

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Login-into-geoserver-from-java-tp5133178p5133189.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I am not quite sure what you are asking for … perhaps I can ask what you wish to accomplish by logging into GeoServer?

a) Access maps or mapping data

The web services are stateless and do not require a session to access.

b) Configuration

Configure is easiest to perform as an administration using the web administration application. You may wish to write another program to perform configuration for you using the “REST API”. Each REST api request is independent, but requires a username and password.

Jody

···

Jody Garnett

On Sat, Apr 5, 2014 at 2:42 AM, mlg27 <sam_parada@anonymised.com> wrote:

hi,

I want to log in geroserver from a java web application using post request.
How I can do this?

Exists any url like
“http//:host:port/geoserver/login?username=usr&password=pass”?

Thanks in advance.

Cheers, Samuel


View this message in context: http://osgeo-org.1560.x6.nabble.com/Login-into-geoserver-from-java-tp5133178.html
Sent from the GeoServer - User mailing list archive at Nabble.com.



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I've integrated the geoserver web interface in gatein portal using a iframe
portlet, and what I want is login geoserver using the credentials of the
current user that is logged in the portal.

Cheers,
Samuel

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Login-into-geoserver-from-java-tp5133178p5133571.html
Sent from the GeoServer - User mailing list archive at Nabble.com.