Skip to main content

How to add custom realm to administration console

7 replies [Last post]
Anonymous

Hi All,

I created a custom realm following the documentation on: http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs

The next step would be to get the new realm into the administration console, i.e. I want it available in the dropdown box for realms and I'd like to set the required parameters. Is there any documentation for this available?

Cheers,
Andy

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kumar Jayanti Guest
Offline
Joined: 2011-04-02
Points: 0

It should be automatic. You should see your realm in admin console once your realm is created correctly.
On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:

> Hi All,
>
> I created a custom realm following the documentation on: http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs
>
> The next step would be to get the new realm into the administration console, i.e. I want it available in the dropdown box for realms and I’d like to set the required parameters. Is there any documentation for this available?
>
> Cheers,
> Andy

Andreas Junius

Yep, I can see my realm there (created on the command line). However I thought there should be a way to add it to the dropdown box on the "New Realm" dialogue?

From: KumarJayanti [mailto:v.b.kumar.jayanti...]
Sent: Monday, 23 July 2012 4:42 PM
To: users@glassfish.java.net
Subject: Re: How to add custom realm to administration console

It should be automatic. You should see your realm in admin console once your realm is created correctly.
On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:

Hi All,

I created a custom realm following the documentation on: http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs

The next step would be to get the new realm into the administration console, i.e. I want it available in the dropdown box for realms and I'd like to set the required parameters. Is there any documentation for this available?

Cheers,
Andy

anilam
Offline
Joined: 2005-03-29
Points: 0

The "Class Name" dropdown box in the "New Realm" shows the predefined
authrealm class name returned by a hidden command. If you run the
following command
%asadmin __list-predefined-authrealm-classnames
do you see it included there ?

Anissa.

On 7/23/12 12:19 AM, Andreas Junius wrote:
>
> Yep, I can see my realm there (created on the command line). However I
> thought there should be a way to add it to the dropdown box on the
> "New Realm" dialogue?
>
> *From:*KumarJayanti [mailto:v.b.kumar.jayanti...]
> *Sent:* Monday, 23 July 2012 4:42 PM
> *To:* users@glassfish.java.net
> *Subject:* Re: How to add custom realm to administration console
>
> It should be automatic. You should see your realm in admin console
> once your realm is created correctly.
>
> On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:
>
>
>
> Hi All,
>
> I created a custom realm following the documentation
> on:http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs
>
> The next step would be to get the new realm into the administration
> console, i.e. I want it available in the dropdown box for realms and
> I'd like to set the required parameters. Is there any documentation
> for this available?
>
> Cheers,
>
> Andy
>

Andreas Junius

Sorry for my previous message - I made a typo using the command. Now it's working and actually my class is not part of this list. So what would be required to get my custom realm added to the list?

Andy

From: Anissa Lam [mailto:anissa.lam...]
Sent: Monday, 23 July 2012 10:50 PM
To: users@glassfish.java.net
Subject: Re: How to add custom realm to administration console

The "Class Name" dropdown box in the "New Realm" shows the predefined authrealm class name returned by a hidden command. If you run the following command
%asadmin __list-predefined-authrealm-classnames
do you see it included there ?

Anissa.

On 7/23/12 12:19 AM, Andreas Junius wrote:
Yep, I can see my realm there (created on the command line). However I thought there should be a way to add it to the dropdown box on the "New Realm" dialogue?

From: KumarJayanti [mailto:v.b.kumar.jayanti...]
Sent: Monday, 23 July 2012 4:42 PM
To: users@glassfish.java.net
Subject: Re: How to add custom realm to administration console

It should be automatic. You should see your realm in admin console once your realm is created correctly.
On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:

Hi All,

I created a custom realm following the documentation on: http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs

The next step would be to get the new realm into the administration console, i.e. I want it available in the dropdown box for realms and I'd like to set the required parameters. Is there any documentation for this available?

Cheers,
Andy

anilam
Offline
Joined: 2005-03-29
Points: 0

This is an API that is provided by the security team to list out the
predefined classes. Sounds like it only returns the out-of-box realm
class only.
Kumar will need to confirm and let us know what if anything can be done
to include your realm.
You can type in the classname in the text box as user defined class and
specify the property in the property table provided since it isn't
included in the dropdown.

thanks
Anissa.

On 7/23/12 11:22 PM, Andreas Junius wrote:
>
> Sorry for my previous message -- I made a typo using the command. Now
> it's working and actually my class is not part of this list. So what
> would be required to get my custom realm added to the list?
>
> Andy
>
> *From:*Anissa Lam [mailto:anissa.lam...]
> *Sent:* Monday, 23 July 2012 10:50 PM
> *To:* users@glassfish.java.net
> *Subject:* Re: How to add custom realm to administration console
>
>
> The "Class Name" dropdown box in the "New Realm" shows the predefined
> authrealm class name returned by a hidden command. If you run the
> following command
> %asadmin __list-predefined-authrealm-classnames
> do you see it included there ?
>
> Anissa.
>
> On 7/23/12 12:19 AM, Andreas Junius wrote:
>
> Yep, I can see my realm there (created on the command line). However I
> thought there should be a way to add it to the dropdown box on the
> "New Realm" dialogue?
>
> *From:*KumarJayanti [mailto:v.b.kumar.jayanti...]
> *Sent:* Monday, 23 July 2012 4:42 PM
> *To:* users@glassfish.java.net
> *Subject:* Re: How to add custom realm to administration console
>
> It should be automatic. You should see your realm in admin console
> once your realm is created correctly.
>
> On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:
>
>
>
>
> Hi All,
>
> I created a custom realm following the documentation
> on:http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs
>
> The next step would be to get the new realm into the administration
> console, i.e. I want it available in the dropdown box for realms and
> I'd like to set the required parameters. Is there any documentation
> for this available?
>
> Cheers,
>
> Andy
>

Andreas Junius

It appears that this command isn't available (GF 3.1.2.2). Do you know where GF stores this list (and the properties associated with the respective class)?

Andy

From: Anissa Lam [mailto:anissa.lam...]
Sent: Monday, 23 July 2012 10:50 PM
To: users@glassfish.java.net
Subject: Re: How to add custom realm to administration console

The "Class Name" dropdown box in the "New Realm" shows the predefined authrealm class name returned by a hidden command. If you run the following command
%asadmin __list-predefined-authrealm-classnames
do you see it included there ?

Anissa.

On 7/23/12 12:19 AM, Andreas Junius wrote:
Yep, I can see my realm there (created on the command line). However I thought there should be a way to add it to the dropdown box on the "New Realm" dialogue?

From: KumarJayanti [mailto:v.b.kumar.jayanti...]
Sent: Monday, 23 July 2012 4:42 PM
To: users@glassfish.java.net
Subject: Re: How to add custom realm to administration console

It should be automatic. You should see your realm in admin console once your realm is created correctly.
On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:

Hi All,

I created a custom realm following the documentation on: http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs

The next step would be to get the new realm into the administration console, i.e. I want it available in the dropdown box for realms and I'd like to set the required parameters. Is there any documentation for this available?

Cheers,
Andy

anilam
Offline
Joined: 2005-03-29
Points: 0

The command has to be there, otherwise the admin console will not list
anything as predefined realm, ie, the dropdown box will be empty.
What did you do that make you think the command isn't available ?

Did you do exactly as suggested ?
%asadmin __list-predefined-authrealm-classnames

and you can also try
%asadmin list-commands __list

to see what it returns. If you just do list-commands, this will not
show __list-predefined-authrealm-classnames since it is a hidden command.

Anissa.

On 7/23/12 11:13 PM, Andreas Junius wrote:
>
> It appears that this command isn't available (GF 3.1.2.2). Do you know
> where GF stores this list (and the properties associated with the
> respective class)?
>
> Andy
>
> *From:*Anissa Lam [mailto:anissa.lam...]
> *Sent:* Monday, 23 July 2012 10:50 PM
> *To:* users@glassfish.java.net
> *Subject:* Re: How to add custom realm to administration console
>
>
> The "Class Name" dropdown box in the "New Realm" shows the predefined
> authrealm class name returned by a hidden command. If you run the
> following command
> %asadmin __list-predefined-authrealm-classnames
> do you see it included there ?
>
> Anissa.
>
> On 7/23/12 12:19 AM, Andreas Junius wrote:
>
> Yep, I can see my realm there (created on the command line). However I
> thought there should be a way to add it to the dropdown box on the
> "New Realm" dialogue?
>
> *From:*KumarJayanti [mailto:v.b.kumar.jayanti...]
> *Sent:* Monday, 23 July 2012 4:42 PM
> *To:* users@glassfish.java.net
> *Subject:* Re: How to add custom realm to administration console
>
> It should be automatic. You should see your realm in admin console
> once your realm is created correctly.
>
> On Jul 23, 2012, at 12:27 PM, Andreas Junius wrote:
>
>
>
>
> Hi All,
>
> I created a custom realm following the documentation
> on:http://docs.oracle.com/cd/E26576_01/doc.312/e24930/securing-apps.htm#beabs
>
> The next step would be to get the new realm into the administration
> console, i.e. I want it available in the dropdown box for realms and
> I'd like to set the required parameters. Is there any documentation
> for this available?
>
> Cheers,
>
> Andy
>